# Copyright (c) 1983 Regents of the University of California.
# All rights reserved. The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
# @(#)maketape 4.31 (Berkeley) 6/6/86
# maketape [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ]
if [ $# -gt 0 ]; then type=$1; fi
if [ $# -gt 1 ]; then tape
=$2; fi
if [ $# -gt 2 ]; then remote
=$3; tartape
='-'; fi
trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
$remote mt
-t ${tape} rew
mount
-r /dev
/hp2a
/c
/nbsd
mount
-r /dev
/hp2g
/c
/nbsd
/usr
tp cmf
/tmp
/tape.$$ boot copy format
echo "Build 1st level boot block file"
cat tsboot htboot tmboot mtboot utboot noboot noboot
/tmp
/tape.$$ | \
$remote dd of
=${tape} obs
=512 conv
=sync
echo "Add dump of mini-root file system"
eval dd if=/dev
/r
${miniroot} count
=205 bs
=20b conv
=sync
${remote+'|'} \
${remote-"of=$tape"} ${remote+'/usr/local/20b ">" $tape'}
echo "Add full dump of real file system"
/etc
/${remote+r}dump 0uf $remote${remote+:}${tape} /c
/nbsd
echo "Add tar image of /usr"
cd /nbsd
/usr
; eval tar cf
${tartape} adm bin dict doc games \
guest hosts include lib
local man mdec msgs new \
preserve pub spool tmp ucb \
${remote+'| $remote /usr/local/20b ">" $tape'}
echo "Done, rewinding first tape"
$remote mt
-t ${tape} rew
&
echo "Mount second tape and hit return when ready"
echo "(or type name of next tape drive)"
echo "Add tar image of system sources"
cd /nbsd
/sys
; eval tar cf
${tartape} . \
${remote+'| $remote /usr/local/20b ">" $tape'}
echo "Add user source code"
cd /nbsd
/usr
/src
; eval tar cf
${tartape} Makefile bin etc games \
include lib
local old ucb undoc usr.bin usr.lib \
${remote+'| $remote /usr/local/20b ">" $tape'}
cd /usr
/lib
/vfont
; eval tar cf
${tartape} . \
${remote+'| $remote /usr/local/20b ">" $tape'}
echo "Done, rewinding second tape"
$remote mt
-t ${tape} rew
&
echo "Mount third tape and hit return when ready"
echo "(or type name of next tape drive)"
echo "Add user contributed software"
cd /nbsd
/usr
/src
/new
; eval tar cf
${tartape} \
B X ansi apl bib courier cpm dipress dsh emacs enet
help \
hyper icon jove kermit mh mkmf mmdf.
tar.Z news notes nntp \
np100
patch pathalias rcs rn spms sumacc.
tar.Z sunrpc \
${remote+'| $remote /usr/local/20b ">" $tape'}
cd /nbsd
/usr
/src
/new
; eval tar cf
${tartape} \
B X ansi apl bib courier cpm dipress dsh emacs enet
help \
hyper icon jove kermit mh mkmf mmdf news notes nntp \
np100
patch pathalias rcs rn spms sumacc sunrpc \
${remote+'| $remote /usr/local/20b ">" $tape'}
cd /nbsd
/usr
/ingres
; eval tar cf
${tartape} . \
${remote+'| $remote /usr/local/20b ">" $tape'}
echo "Done, rewinding tape"
$remote mt
-t ${tape} rew
&