BSD 4_3 development
[unix-history] / usr / hosts / MAKEHOSTS
CommitLineData
f1feb96c
C
1#! /bin/sh -x
2cd ${DESTDIR}/usr/hosts
3#
4# We want to save ourselves while cleaning up. The funny sequence is to
5# minimize the window where the machine could crash and leave MAKEHOSTS
6# misplaced.
7#
8mv MAKEHOSTS .MAKEHOSTS
9/bin/rm -f M*
10mv .MAKEHOSTS MAKEHOSTS
11/bin/rm -f [A-LN-Za-z]*
12for i in `egrep '^128\.32' ${DESTDIR}/etc/hosts | awk '$2 !~ /^ucb|\.berkeley\.edu$/ {print $2} $3 !~ /^ucb|\.berkeley\.edu$|^$/ {print $3} $4 !~ /^ucb|\.berkeley\.edu$|^$/ {print $4}'`;
13do
14 ln -s /usr/ucb/rsh $i
15done
16#
17# Special entries that don't get generated above
18#
19ln -s /usr/ucb/rsh ucbvax
20ln -s /usr/ucb/rsh ucbarpa