home *** CD-ROM | disk | FTP | other *** search
- :
- # @(#) uulist 23.2 90/11/22 SCOCAN
- #
- # Copyright (C) The Santa Cruz Operation, 1989.
- # This Module contains Proprietary Information of
- # The Santa Cruz Operation, and should be treated as Confidential.
- #
- # uulist -- Make simple uucp channel and domain
- # tables from the output of uuname
- #
- # IFS="{space}{tab}{newline}"
- #
- IFS="
- "
- PATH=/bin:/usr/bin
-
- #
- # Configuration defaults
- #
- LDOMAIN=UUCP
- TMPFILE=/tmp/uuchn$$
-
- trap "rm -f $TMPFILE; exit 0" 1 2 3 15
-
- #
- # get the system names
- #
-
- uuname > $TMPFILE
-
- #
- # generate the domain file
- #
-
- if [ -f uucp.dom ]
- then
- mv uucp.dom uucp.dom-
- fi
-
- sed -e "s/\(.*\)/\1 \1.$LDOMAIN/" \
- $TMPFILE > uucp.dom
-
- #
- # generate the channel file
- #
-
- if [ -f uucp.chn ]
- then
- mv uucp.chn uucp.chn-
- fi
-
- sed -e "s/\(.*\)/\1.$LDOMAIN \1!%s/" \
- $TMPFILE > uucp.chn
-
-
- rm -f $TMPFILE
-
- exit 0
-