makenet converts sites to network format
utzoo!decvax!harpo!duke!ucf-cs!tim
utzoo!decvax!harpo!duke!ucf-cs!tim
Fri Jun 18 06:12:03 AEST 1982
cp sites /tmp/site1
cp sites /tmp/site2
awk 'FILENAME == "/tmp/site1" {sites[$1]=NR; print $1}
FILENAME == "/tmp/site2" {for(i=2; i <= NF; i++) \
printf "%s ",sites[$i];printf "0\n"}
FILENAME == "nmail.h" && $1 == "#define" && $2 == "LOCAL" \
{printf "%d 0\n", sites[$3]}' \
/tmp/site1 /tmp/site2 nmail.h >$1
rm -f /tmp/site1 /tmp/site2
echo The network topology file is installed.
More information about the Comp.sources.unix
mailing list