|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T a
Length: 710 (0x2c6)
Types: TextFile
Names: »alter_top_domain«
└─⟦9ae75bfbd⟧ Bits:30007242 EUUGD3: Starter Kit
└─⟦bfebc70e2⟧ »EurOpenD3/mail/sendmail-5.65b+IDA-1.4.3.tar.Z«
└─⟦f9e35cd84⟧
└─⟦this⟧ »sendmail/uk.extras/alter_top_domain«
#!/bin/sh
case "$1" in
-t ) want=t was=T search="^CT" ; continue;;
-T ) want=T was=t search="^Ct" ; continue;;
* ) echo "usage: $0 [ -t / -T ]" ; exit 1 ;;
esac
if [ ! -s Sendmail.mc -o ! -w Sendmail.mc ] ; then
echo "This should be run in the ida/cf directory - can't find writable Sendmail.mc"
exit 1
fi
if grep -s $search Sendmail.mc ; then
true
else
echo "Looks like Sendmail.mc is already as required"
exit 0
fi
( case "$want" in
t ) echo "/^DV/s/)$/)-t/p" ;;
T ) echo "/^DV/s/-t$//p"
esac
echo "g/ C${was} /s// C${want} /gp
g/^C${was}/s//C${want}/p
g/=${was}/s//=${want}/gp
g/~${was}/s//~${want}/gp
w
q
" ) |
ed Sendmail.mc