Commit | Line | Data |
---|---|---|
b2ad5966 C |
1 | #!/bin/sh |
2 | # | |
3 | # Copyright (c) 1980 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 | # %W% (Berkeley) %G% | |
8 | # | |
9 | # %M% [ 6250 | 1600 [ tapename [ remotetapemachine ] ] ] | |
10 | miniroot=hp0d | |
11 | tape=/dev/rmt12 | |
12 | type=6250 | |
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 | echo "Add user contributed software" | |
22 | if [ ${type} != '6250' ] | |
23 | then | |
24 | cd /nbsd/usr/src/new; eval tar cf ${tartape} \ | |
25 | B X ansi apl bib courier cpm dipress dsh emacs enet help \ | |
26 | hyper icon jove kermit mh mkmf mmdf.tar.Z news notes \ | |
27 | np100 patch pathalias rcs rn spms sumacc.tar.Z sunrpc \ | |
28 | tac tools umodem xns \ | |
29 | ${remote+'| $remote /usr/local/20b ">" $tape'} | |
30 | else | |
31 | cd /nbsd/usr/src/new; eval tar cf ${tartape} \ | |
32 | B X ansi apl bib courier cpm dipress dsh emacs enet help \ | |
33 | hyper icon jove kermit mh mkmf mmdf news notes \ | |
34 | np100 patch pathalias rcs rn spms sumacc sunrpc \ | |
35 | tac tools umodem xns \ | |
36 | ${remote+'| $remote /usr/local/20b ">" $tape'} | |
37 | fi | |
38 | echo "Add ingres source" | |
39 | cd /nbsd/usr/ingres; eval tar cf ${tartape} . \ | |
40 | ${remote+'| $remote /usr/local/20b ">" $tape'} | |
41 | echo "Done, rewinding tape" | |
42 | $remote mt -t ${tape} rew & |