Annotation of 43BSDReno/sys/tahoedist/maketape, revision 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 are permitted provided
        !             7: # that: (1) source distributions retain this entire copyright notice and
        !             8: # comment, and (2) distributions including binaries display the following
        !             9: # acknowledgement:  ``This product includes software developed by the
        !            10: # University of California, Berkeley and its contributors'' in the
        !            11: # documentation or other materials provided with the distribution and in
        !            12: # all advertising materials mentioning features or use of this software.
        !            13: # Neither the name of the University nor the names of its contributors may
        !            14: # be used to endorse or promote products derived from this software without
        !            15: # specific prior written permission.
        !            16: # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            17: # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            18: # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            19: #
        !            20: #      @(#)maketape    5.7 (Berkeley) 7/4/90
        !            21: #
        !            22: 
        !            23: # maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
        !            24: miniroot=dk4a
        !            25: bootroot=dk2b
        !            26: nbsd=dk1a
        !            27: nbsdusr=dk0c
        !            28: tape=/dev/rmt20
        !            29: type=6250
        !            30: block=40
        !            31: tflag=cbf
        !            32: bprog="/usr/local/20b 20480"
        !            33: 
        !            34: if [ $# -gt 0 ]; then
        !            35:        type=$1;
        !            36: fi
        !            37: 
        !            38: if [ $# -gt 1 ]; then
        !            39:        tape=$2;
        !            40: fi
        !            41: 
        !            42: tartape=$tape
        !            43: if [ $# -gt 2 ]; then
        !            44:        remote=$3;
        !            45:        tartape='-';
        !            46: fi
        !            47: 
        !            48: rsh $remote mt -t ${tape} rew
        !            49: date
        !            50: umount /dev/$nbsdusr
        !            51: umount /dev/$nbsd
        !            52: mount -r /dev/$nbsd /nbsd
        !            53: mount -r /dev/$nbsdusr /nbsd/usr
        !            54: cd /nbsd
        !            55: sync
        !            56: 
        !            57: if [ $type = '1600a' ]
        !            58: then
        !            59:        type=1600
        !            60: fi
        !            61: 
        !            62: echo "Install image of bootstrap file system"
        !            63: eval dd if=/dev/r${bootroot} count=750 bs=1024 conv=sync ${remote+"| rsh"} \
        !            64:        ${remote-"of=$tape"} ${remote+'/usr/local/20b 1024 ">" $tape'}
        !            65: 
        !            66: echo "Add image of mini-root file system"
        !            67: eval dd if=/dev/r${miniroot} count=205 bs=10240 conv=sync ${remote+"| rsh"} \
        !            68:        ${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'}
        !            69: 
        !            70: echo "Add full dump of real file system"
        !            71: /sbin/${remote+r}dump 0f $remote${remote+:}${tape} /nbsd
        !            72: 
        !            73: echo "Add tar image of /usr"
        !            74: cd /nbsd/usr
        !            75: tar ${tflag} ${block} ${tartape} bin contrib games include lib libdata \
        !            76:        libexec local obj old sbin share | rsh $remote ${bprog} ">" $tape
        !            77: 
        !            78: if [ ${type} != '6250' ]
        !            79: then
        !            80:        echo "Done, rewinding first tape"
        !            81:        rsh $remote mt -t ${tape} rew &
        !            82:        echo "Mount second tape and hit return when ready"
        !            83:        echo "(or type name of next tape drive)"
        !            84:        read x
        !            85:        if [ "$x" != "" ]
        !            86:        then    tape=$x
        !            87:        fi
        !            88: fi
        !            89: 
        !            90: : tape2:
        !            91: echo "Add user source code"
        !            92: FILES="Makefile bin etc games include kerberosIV lib libexec old \
        !            93:        pgrm sbin share usr.bin usr.sbin"
        !            94: cd /nbsd/usr/src
        !            95: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape
        !            96: 
        !            97: #echo "Add varian fonts"
        !            98: #cd /usr/lib/vfont
        !            99: #tar ${tflag} ${block} ${tartape} . ${remote+'| $remote ${bprog} ">" $tape'}
        !           100: if [ ${type} != '6250' ]
        !           101: then
        !           102:        echo "Done, rewinding second tape"
        !           103:        $remote mt -t ${tape} rew &
        !           104:        echo "Mount third tape and hit return when ready"
        !           105:        echo "(or type name of next tape drive)"
        !           106:        read x
        !           107:        if [ "$x" != "" ]
        !           108:        then    tape=$x
        !           109:        fi
        !           110: fi
        !           111: 
        !           112: : tape3:
        !           113: echo "Add tar image of system sources"
        !           114: cd /nbsd/usr/src/sys
        !           115: tar ${tflag} ${block} ${tartape} . | rsh $remote ${bprog} ">" $tape
        !           116: 
        !           117: echo "Add user contributed software"
        !           118: # standard (always uncompressed) directories:
        !           119: FILES="Makefile Makefile.inc ansi bib emacs emacs-18.55.tar.Z jove kermit \
        !           120:        mh.tar.Z patch rcs vmsprep"
        !           121: cd /nbsd/usr/src/contrib
        !           122: tar ${tflag} ${block} ${tartape} ${FILES} | rsh $remote ${bprog} ">" $tape
        !           123: 
        !           124: #echo "Add ingres source"
        !           125: #cd /nbsd/usr/ingres; eval tar ${tflag} ${block} ${tartape} . \
        !           126: #      ${remote+'| rsh $remote ${bprog} ">" $tape'}
        !           127: 
        !           128: echo "Done, rewinding tape"
        !           129: 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.