Annotation of 43BSD/sys/dist/MAKEHOSTS, revision 1.1

1.1     ! root        1: #! /bin/sh -x
        !             2: 
        !             3: # address search pattern to recognize local hosts
        !             4: LOCALADDR='^128\.32'
        !             5: 
        !             6: # awk pattern for uninteresting (eg, long form) alias
        !             7: SKIP='/^ucb|\.berkeley\.edu$|^$/'
        !             8: 
        !             9: # Special entries that don't get generated normally
        !            10: SPECIAL='ucbvax ucbarpa'
        !            11: 
        !            12: 
        !            13: cd ${DESTDIR}/usr/hosts
        !            14: #
        !            15: # We want to save ourselves while cleaning up.  The funny sequence is to
        !            16: # minimize the window where the machine could crash and leave MAKEHOSTS
        !            17: # misplaced.
        !            18: #
        !            19: mv MAKEHOSTS .MAKEHOSTS
        !            20: rm -f M*
        !            21: mv .MAKEHOSTS MAKEHOSTS
        !            22: rm -f [A-LN-Za-z]*
        !            23: 
        !            24: for i in `egrep "$LOCALADDR" ${DESTDIR}/etc/hosts | awk "\\$2 !~ $SKIP {print \\$2} \\$3 !~ $SKIP {print \\$3} \\$4 !~ $SKIP {print \\$4}"`;
        !            25: do
        !            26:        ln -s /usr/ucb/rsh $i
        !            27: done
        !            28: 
        !            29: for i in $SPECIAL
        !            30: do
        !            31:        ln -s /usr/ucb/rsh $i
        !            32: done

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.