Annotation of 43BSDTahoe/sys/tahoedist/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    5.3 (Berkeley) 7/16/88
        !             8: #
        !             9: #      maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
        !            10: miniroot=dk4a
        !            11: bootroot=dk2a
        !            12: nbsd=dk1a
        !            13: nbsdusr=dk2c
        !            14: tape=/dev/rmt20
        !            15: type=6250
        !            16: 
        !            17: if [ $# -gt 0 ]; then type=$1; fi
        !            18: if [ $# -gt 1 ]; then tape=$2; fi
        !            19: tartape=$tape
        !            20: if [ $# -gt 2 ]; then remote=$3; tartape='-'; fi
        !            21: 
        !            22: $remote mt -t ${tape} rew
        !            23: date
        !            24: umount /dev/$nbsdusr
        !            25: umount /dev/$nbsd
        !            26: mount -r /dev/$nbsd /nbsd
        !            27: mount -r /dev/$nbsdusr /nbsd/usr
        !            28: cd /nbsd
        !            29: sync
        !            30: 
        !            31: if [ $type = '1600a' ]
        !            32: then
        !            33:        type=1600
        !            34: fi
        !            35: 
        !            36: echo "Add image of bootstrap file system"
        !            37: eval dd if=/dev/r${bootroot} count=400 bs=1024 conv=sync \
        !            38:        ${remote+'| rsh $remote dd bs=1024'} of=$tape
        !            39: 
        !            40: echo "Add image of mini-root file system"
        !            41: eval dd if=/dev/r${miniroot} count=205 bs=20b conv=sync ${remote+'| rsh'} \
        !            42:        ${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'}
        !            43: 
        !            44: echo "Add full dump of real file system"
        !            45: /etc/${remote+r}dump 0uf $remote${remote+:}${tape} /nbsd
        !            46: echo "Add tar image of /usr"
        !            47: cd /nbsd/usr; eval tar cf ${tartape} adm bin dict doc games \
        !            48:        guest hosts include lib local man msgs new \
        !            49:        preserve pub spool tmp ucb \
        !            50:                ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            51: if [ ${type} != '6250' ]
        !            52: then
        !            53:        echo "Done, rewinding first tape"
        !            54:        $remote mt -t ${tape} rew &
        !            55:        echo "Mount second tape and hit return when ready"
        !            56:        echo "(or type name of next tape drive)"
        !            57:        read x
        !            58:        if [ "$x" != "" ]
        !            59:        then    tape=$x
        !            60:        fi
        !            61: fi
        !            62: 
        !            63: : tape2:
        !            64: echo "Add tar image of system sources"
        !            65: cd /nbsd/sys; eval tar cf ${tartape} . \
        !            66:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            67: 
        !            68: echo "Add user source code"
        !            69: cd /nbsd/usr/src; eval tar cf ${tartape} Makefile bin cci etc games \
        !            70:        include lib local man old ucb undoc usr.bin usr.lib \
        !            71:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            72: 
        !            73: #echo "Add varian fonts"
        !            74: #cd /usr/lib/vfont; eval tar cf ${tartape} . \
        !            75: #      ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            76: if [ ${type} != '6250' ]
        !            77: then
        !            78:        echo "Done, rewinding second tape"
        !            79:        $remote mt -t ${tape} rew &
        !            80:        echo "Mount third tape and hit return when ready"
        !            81:        echo "(or type name of next tape drive)"
        !            82:        read x
        !            83:        if [ "$x" != "" ]
        !            84:        then    tape=$x
        !            85:        fi
        !            86: fi
        !            87: 
        !            88: : tape3:
        !            89: echo "Add user contributed software"
        !            90: # standard (always uncompressed) directories:
        !            91: new="README Makefile B X ansi apl bib courier cpm dipress dsh \
        !            92:        enet help hyper jove kermit mkmf news notes nntp np100 \
        !            93:        patch pathalias rcs rn spms sunrpc tac tools umodem xns"
        !            94: uncompress="emacs icon mh mmdf sumacc pup"
        !            95: compress="emacs.tar.Z icon.tar.Z mh.tar.Z mmdf.tar.Z sumacc.tar.Z pup.tar.Z"
        !            96: cd /nbsd/usr/src/new; eval tar cvf ${tartape} ${new} ${compress} \
        !            97:        ${remote+'| $remote /usr/local/20b ">" $tape'}
        !            98: 
        !            99: #echo "Add ingres source"
        !           100: #cd /nbsd/usr/ingres; eval tar cf ${tartape} . \
        !           101: #      ${remote+'| $remote /usr/local/20b ">" $tape'}
        !           102: 
        !           103: echo "Done, rewinding tape"
        !           104: $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.