-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
executable file
·57 lines (49 loc) · 1.51 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
DISKIMG=$1
shift
c1541 $DISKIMG -bwrite boot/bootsect.128 1 0 -bwrite boot/autostart64.128 1 1
c1541 $DISKIMG -@ "b-a 8 1 0" -@ "b-a 8 1 1" -write tools/kmon
c1541 $DISKIMG -write c/config
c1541 $DISKIMG -write tools/pip
c1541 $DISKIMG -write c/setup
c1541 $DISKIMG -write c/uname
c1541 $DISKIMG -write c/smon
c1541 $DISKIMG -write tools/patch64
c1541 $DISKIMG -write vdc64/vdc64
#c1541 $DISKIMG -write tools/patch128
#c1541 $DISKIMG -write vdc64/vdc128
c1541 $DISKIMG -write tools/kmon64 -write tools/kmon128
c1541 $DISKIMG -write tools/pip64 -write tools/pip128
c1541 $DISKIMG -write tools/sjload !
#c1541 $DISKIMG -write fifth/5th
#c1541 $DISKIMG -write fifth/imenu
#c1541 $DISKIMG -write fifth/idump
c1541 $DISKIMG -write s/empty '================'
c1541 $DISKIMG -write s/startup,s
c1541 $DISKIMG -write s/issue,s
c1541 $DISKIMG -write s/ucl.dat
c1541 $DISKIMG -write s/keys
c1541 $DISKIMG -write s/empty '=-demos--------='
c1541 $DISKIMG -write c/colors
c1541 $DISKIMG -write c/banner
c1541 $DISKIMG -write c/hello.bas
c1541 $DISKIMG -write c/raster
for i in demos/*.prg
do
c1541 $DISKIMG -write "$i" `basename "$i" .prg` # >/dev/null
done
while [ $# -gt 0 ]
do
DIR=$1
if [[ -d "$DIR" ]]
then
shift
echo "Installing from directory" $DIR
c1541 $DISKIMG -write s/empty '=-'`expr substr "$DIR""----------------" 1 14`
for i in $DIR/*
do
c1541 $DISKIMG -write "$i" # >/dev/null
done
fi
done
c1541 $DISKIMG -write s/empty '=-user files---='