4.3BSD-UWisc/hosts/MAKEHOSTS

#! /bin/sh -x
cd ${DESTDIR}/usr/hosts
#
# We want to save ourselves while cleaning up.  The funny sequence is to
# minimize the window where the machine could crash and leave MAKEHOSTS
# misplaced.
#
mv MAKEHOSTS .MAKEHOSTS
/bin/rm -f M*
mv .MAKEHOSTS MAKEHOSTS
/bin/rm -f [A-LN-Za-z]*
for i in `egrep '^128\.105' ${DESTDIR}/etc/hosts | awk '$2 !~ /^wisc|\.wisc\.edu$/ {print $2} $3 !~ /^wisc|\.wisc\.edu$|^$/ {print $3} $4 !~ /^wisc|\.wisc\.edu$|^$/ {print $4} $5 !~ /^wisc|\.wisc\.edu$|^$/ {print $5}'`;
do
	ln -s /usr/ucb/rsh $i
done
#
# Special entries that don't get generated above
#