Annotation of Net2/arch/tahoe/dist/maketape, revision 1.1.1.1

1.1       root        1: #!/bin/sh -
                      2: #
                      3: # Copyright (c) 1990 The Regents of the University of California.
                      4: # All rights reserved.
                      5: #
                      6: # Redistribution and use in source and binary forms, with or without
                      7: # modification, are permitted provided that the following conditions
                      8: # are met:
                      9: # 1. Redistributions of source code must retain the above copyright
                     10: #    notice, this list of conditions and the following disclaimer.
                     11: # 2. Redistributions in binary form must reproduce the above copyright
                     12: #    notice, this list of conditions and the following disclaimer in the
                     13: #    documentation and/or other materials provided with the distribution.
                     14: # 3. All advertising materials mentioning features or use of this software
                     15: #    must display the following acknowledgement:
                     16: #      This product includes software developed by the University of
                     17: #      California, Berkeley and its contributors.
                     18: # 4. Neither the name of the University nor the names of its contributors
                     19: #    may be used to endorse or promote products derived from this software
                     20: #    without specific prior written permission.
                     21: #
                     22: # THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
                     23: # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
                     24: # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
                     25: # ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
                     26: # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
                     27: # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
                     28: # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
                     29: # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
                     30: # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
                     31: # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
                     32: # SUCH DAMAGE.
                     33: #
                     34: #      @(#)maketape    5.7 (Berkeley) 7/4/90
                     35: #
                     36: 
                     37: # maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
                     38: miniroot=dk4a
                     39: bootroot=dk2b
                     40: nbsd=dk1a
                     41: nbsdusr=dk0c
                     42: tape=/dev/rmt20
                     43: type=6250
                     44: block=40
                     45: tflag=cbf
                     46: bprog="/usr/local/20b 20480"
                     47: 
                     48: if [ $# -gt 0 ]; then
                     49:        type=$1;
                     50: fi
                     51: 
                     52: if [ $# -gt 1 ]; then
                     53:        tape=$2;
                     54: fi
                     55: 
                     56: tartape=$tape
                     57: if [ $# -gt 2 ]; then
                     58:        remote=$3;
                     59:        tartape='-';
                     60: fi
                     61: 
                     62: rsh $remote mt -t ${tape} rew
                     63: date
                     64: umount /dev/$nbsdusr
                     65: umount /dev/$nbsd
                     66: mount -r /dev/$nbsd /nbsd
                     67: mount -r /dev/$nbsdusr /nbsd/usr
                     68: cd /nbsd
                     69: sync
                     70: 
                     71: if [ $type = '1600a' ]
                     72: then
                     73:        type=1600
                     74: fi
                     75: 
                     76: echo "Install image of bootstrap file system"
                     77: eval dd if=/dev/r${bootroot} count=750 bs=1024 conv=sync ${remote+"| rsh"} \
                     78:        ${remote-"of=$tape"} ${remote+'/usr/local/20b 1024 ">" $tape'}
                     79: 
                     80: echo "Add image of mini-root file system"
                     81: eval dd if=/dev/r${miniroot} count=205 bs=10240 conv=sync ${remote+"| rsh"} \
                     82:        ${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'}
                     83: 
                     84: echo "Add full dump of real file system"
                     85: /sbin/${remote+r}dump 0f $remote${remote+:}${tape} /nbsd
                     86: 
                     87: echo "Add tar image of /usr"
                     88: cd /nbsd/usr
                     89: tar ${tflag} ${block} ${tartape} bin contrib games include lib libdata \
                     90:        libexec local obj old sbin share | rsh $remote ${bprog} ">" $tape
                     91: 
                     92: if [ ${type} != '6250' ]
                     93: then
                     94:        echo "Done, rewinding first tape"
                     95:        rsh $remote mt -t ${tape} rew &
                     96:        echo "Mount second tape and hit return when ready"
                     97:        echo "(or type name of next tape drive)"
                     98:        read x
                     99:        if [ "$x" != "" ]
                    100:        then    tape=$x
                    101:        fi
                    102: fi
                    103: 
                    104: : tape2:
                    105: echo "Add user source code"
                    106: FILES="Makefile bin etc games include kerberosIV lib libexec old \
                    107:        pgrm sbin share usr.bin usr.sbin"
                    108: cd /nbsd/usr/src
                    109: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape
                    110: 
                    111: #echo "Add varian fonts"
                    112: #cd /usr/lib/vfont
                    113: #tar ${tflag} ${block} ${tartape} . ${remote+'| $remote ${bprog} ">" $tape'}
                    114: if [ ${type} != '6250' ]
                    115: then
                    116:        echo "Done, rewinding second tape"
                    117:        $remote mt -t ${tape} rew &
                    118:        echo "Mount third tape and hit return when ready"
                    119:        echo "(or type name of next tape drive)"
                    120:        read x
                    121:        if [ "$x" != "" ]
                    122:        then    tape=$x
                    123:        fi
                    124: fi
                    125: 
                    126: : tape3:
                    127: echo "Add tar image of system sources"
                    128: cd /nbsd/usr/src/sys
                    129: tar ${tflag} ${block} ${tartape} . | rsh $remote ${bprog} ">" $tape
                    130: 
                    131: echo "Add user contributed software"
                    132: # standard (always uncompressed) directories:
                    133: FILES="Makefile Makefile.inc ansi bib emacs emacs-18.55.tar.Z jove kermit \
                    134:        mh.tar.Z patch rcs vmsprep"
                    135: cd /nbsd/usr/src/contrib
                    136: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape
                    137: 
                    138: #echo "Add ingres source"
                    139: #cd /nbsd/usr/ingres; eval tar ${tflag} ${block} ${tartape} . \
                    140: #      ${remote+'| rsh $remote ${bprog} ">" $tape'}
                    141: 
                    142: echo "Done, rewinding tape"
                    143: rsh $remote mt -t ${tape} rew &

unix.superglobalmegacorp.com

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