xref: /original-bsd/sys/vax/dist/maketape (revision e78e7ec3)
1#! /bin/sh
2#	@(#)maketape	4.15	11/15/83
3#
4miniroot=hp0d
5#
6trap "rm -f /tmp/tape.$$; exit" 0 1 2 3 13 15
7mt rew
8date
9umount /dev/hp2g /dev/hp2h
10umount /dev/hp2a
11mount -r /dev/hp2a /nbsd
12mount -r /dev/hp2g /nbsd/usr
13mount -r /dev/hp2h /nbsd/a
14cd /nbsd/tp
15tp cmf /tmp/tape.$$ boot copy format
16cd /nbsd/sys/mdec
17echo "Build 1st level boot block file"
18cat tsboot htboot tmboot mtboot utboot noboot noboot /tmp/tape.$$ | \
19	dd of=/dev/rmt12 bs=512 conv=sync
20cd /nbsd
21sync
22echo "Add dump of mini-root file system"
23dd if=/dev/r${miniroot} of=/dev/rmt12 bs=20b count=205 conv=sync
24echo "Add full dump of real file system"
25/etc/dump 0uf /dev/rmt12 /nbsd
26echo "Add tar image of system sources"
27cd /nbsd/a/sys; tar cf /dev/rmt12 .
28echo "Add tar image of /usr"
29cd /nbsd/usr; tar cf /dev/rmt12 adm bin dict doc games \
30	guest hosts include lib local man mdec msgs new \
31	preserve pub spool tmp ucb
32echo "Add varian fonts"
33cd /usr/lib/vfont; tar cf /dev/rmt12 .
34echo "Done, rewinding first tape"
35mt rew
36echo "Mount second tape and hit return when ready"; read x
37echo "Add user source code"
38cd /nbsd/usr/src; tar cf /dev/rmt12 .
39echo "Add user contributed software"
40cd /nbsd/a/new; tar cf /dev/rmt12 .
41echo "Add ingres source"
42cd /nbsd/usr/ingres; tar cf /dev/rmt12 .
43echo "Done, rewinding second tape"
44mt rew
45