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

1.1     ! root        1: #!/bin/sh
        !             2: #
        !             3: # Copyright (c) 1983 Regents of the University of California.
        !             4: # All rights reserved.  The Berkeley software License Agreement
        !             5: # specifies the terms and conditions for redistribution.
        !             6: #
        !             7: #      @(#)maketape    4.31 (Berkeley) 6/6/86
        !             8: #
        !             9: #      maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
        !            10: miniroot=hp0d
        !            11: tape=/dev/rmt12
        !            12: type=1600
        !            13: if [ $# -gt 0 ]; then type=$1; fi
        !            14: if [ $# -gt 1 ]; then tape=$2; fi
        !            15: tartape=$tape
        !            16: if [ $# -gt 2 ]; then remote=$3; tartape='-'; fi
        !            17: #
        !            18: trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
        !            19: $remote mt -t ${tape} rew
        !            20: date
        !            21: umount /dev/hp2g
        !            22: umount /dev/hp2a
        !            23: mount -r /dev/hp2a /c/nbsd
        !            24: mount -r /dev/hp2g /c/nbsd/usr
        !            25: cd tp
        !            26: tp cmf /tmp/tape.$$ boot copy format
        !            27: cd /nbsd/sys/mdec
        !            28: echo "Build 1st level boot block file"
        !            29: cat tsboot htboot tmboot mtboot utboot noboot noboot /tmp/tape.$$ | \
        !            30:        $remote dd of=${tape} obs=512 conv=sync
        !            31: cd /nbsd
        !            32: sync
        !            33: echo "Add dump of mini-root file system"
        !            34: eval dd if=/dev/r${miniroot} count=205 bs=20b conv=sync ${remote+'|'} \
        !            35:        ${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'}
        !            36: echo "Add full dump of real file system"
        !            37: /etc/${remote+r}dump 0uf $remote${remote+:}${tape} /c/nbsd
        !            38: echo "Add tar image of /usr"
        !            39: cd /nbsd/usr; eval tar cf ${tartape} adm bin dict doc games \
        !            40:        guest hosts include lib local man mdec msgs new \
        !            41:        preserve pub spool tmp ucb \
        !            42:                ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            43: if [ ${type} != '6250' ]
        !            44: then
        !            45:        echo "Done, rewinding first tape"
        !            46:        $remote mt -t ${tape} rew &
        !            47:        echo "Mount second tape and hit return when ready"
        !            48:        echo "(or type name of next tape drive)"
        !            49:        read x
        !            50:        if [ "$x" != "" ]
        !            51:        then    tape=$x
        !            52:        fi
        !            53: fi
        !            54: echo "Add tar image of system sources"
        !            55: cd /nbsd/sys; eval tar cf ${tartape} . \
        !            56:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            57: echo "Add user source code"
        !            58: cd /nbsd/usr/src; eval tar cf ${tartape} Makefile bin etc games \
        !            59:        include lib local old ucb undoc usr.bin usr.lib \
        !            60:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            61: echo "Add varian fonts"
        !            62: cd /usr/lib/vfont; eval tar cf ${tartape} . \
        !            63:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            64: if [ ${type} != '6250' ]
        !            65: then
        !            66:        echo "Done, rewinding second tape"
        !            67:        $remote mt -t ${tape} rew &
        !            68:        echo "Mount third tape and hit return when ready"
        !            69:        echo "(or type name of next tape drive)"
        !            70:        read x
        !            71:        if [ "$x" != "" ]
        !            72:        then    tape=$x
        !            73:        fi
        !            74: fi
        !            75: echo "Add user contributed software"
        !            76: if [ ${type} != '6250' ]
        !            77: then
        !            78:        cd /nbsd/usr/src/new; eval tar cf ${tartape} \
        !            79:                README Makefile \
        !            80:                B X ansi apl bib courier cpm dipress dsh emacs enet help \
        !            81:                hyper icon jove kermit mh mkmf mmdf.tar.Z news notes nntp \
        !            82:                np100 patch pathalias rcs rn spms sumacc.tar.Z sunrpc \
        !            83:                tac tools umodem xns \
        !            84:                ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            85: else
        !            86:        cd /nbsd/usr/src/new; eval tar cf ${tartape} \
        !            87:                README Makefile \
        !            88:                B X ansi apl bib courier cpm dipress dsh emacs enet help \
        !            89:                hyper icon jove kermit mh mkmf mmdf news notes nntp \
        !            90:                np100 patch pathalias rcs rn spms sumacc sunrpc \
        !            91:                tac tools umodem xns \
        !            92:                ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            93: fi
        !            94: echo "Add ingres source"
        !            95: cd /nbsd/usr/ingres; eval tar cf ${tartape} . \
        !            96:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            97: echo "Done, rewinding tape"
        !            98: $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.