Annotation of 43BSDTahoe/new/nntp/doc/config.sh, revision 1.1.1.1

1.1       root        1: #!/bin/sh
                      2: #
                      3: # Shell script for making manual pages
                      4: #
                      5: # Created by Stan Barber; Mon Apr  6 13:25:27 CDT 1987
                      6: # Modified by Phil Lapsley; Thu Oct 15 17:43:40 PDT 1987
                      7: #
                      8: 
                      9: #
                     10: # ------------- SITE DEPENDENT STUFF ---------------------------
                     11: # (modify these lines to suit your system)
                     12: #
                     13: # the location of inetd on your system (usually /etc/inetd)
                     14: MINETD=/etc/inetd
                     15: # the location of the inetd configuration file (usually /etc/inetd.conf)
                     16: MINETDCONFIG=/etc/inetd.conf
                     17: # the location of nntpd following installation (usually /etc/nntpd)
                     18: MNNTPD=/etc/nntpd
                     19: # the location of the hosts file (usually /etc/hosts)
                     20: MHOSTFILE=/etc/hosts
                     21: # the location of the services file (usually /etc/services)
                     22: MSERVICES=/etc/services
                     23: # the location of the networks file (usually /etc/networks)
                     24: MNETWORKFILE=/etc/networks
                     25: # The location of the news spool directory (usually /usr/spool/news)
                     26: MNEWSSPOOL=/usr/spool/news
                     27: # The location of the news library directory (usually /usr/lib/news)
                     28: MNEWSLIB=/usr/lib/news
                     29: # The location of the file containing the name of the nntp server machine
                     30: # (usually /usr/local/lib/rn/server)
                     31: MSERVERFILE=/usr/local/lib/rn/server
                     32: # The location of rn's local library (usually /usr/local/lib/rn)
                     33: MRNLIB=/usr/local/lib/rn
                     34: #
                     35: # ------------ END OF SITE DEPENDENT STUFF ---------------------
                     36: # (you should not have to touch anything below).
                     37: 
                     38: echo "Extracting $2 from $1 ..."
                     39: 
                     40: ( 
                     41: echo g%NEWSLIB%s%NEWSLIB%$MNEWSLIB%
                     42: echo g%NEWSSPOOL%s%NEWSSPOOL%$MNEWSSPOOL%
                     43: echo g%INETDCONFIG%s%INETDCONFIG%$MINETDCONFIG%
                     44: echo g%LNNTPD%s%LNNTPD%$MNNTPD%
                     45: echo g%INETD%s%INETD%$MINETD%
                     46: echo g%HOSTFILE%s%HOSTFILE%$MHOSTFILE%
                     47: echo g%SERVICES%s%SERVICES%$MSERVICES%
                     48: echo g%NETWORKFILE%s%NETWORKFILE%$MNETWORKFILE%
                     49: echo g%RNLIB%s%RNLIB%$MRNLIB%
                     50: echo w
                     51: echo q
                     52: ) > /tmp/ed.$$
                     53: 
                     54: rm -f $2
                     55: cp $1 $2
                     56: chmod 644 $2
                     57: (ed $2 < /tmp/ed.$$) 2>&1 > /dev/null
                     58: rm /tmp/ed.$$
                     59: 
                     60: echo "Finished."

unix.superglobalmegacorp.com

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