-
Notifications
You must be signed in to change notification settings - Fork 0
/
getit
executable file
·52 lines (42 loc) · 1.74 KB
/
getit
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
#!/bin/sh
mkdir output 2>/dev/null
mkdir d64 2>/dev/null
DISK="$1"
#scp -rp pi@192.168.99.3:/home/pi/pub/floppy/bbc-fdc/tools/out/disk${DISK}*-*.rfi ../out/
####rsync --progress -v -a pi@192.168.99.8:/home/pi/pub/floppy/bbc-fdc/tools/out/disk${DISK}*-*.rfi ../out/
#rsync --progress -v -a pi@192.168.99.31:/home/pi/copy/tools/rfi/disk${DISK}*-*.rfi ../out/
#rsync --progress -v -a pi@192.168.99.31:/home/pi/copy/tools/w/disk${DISK}*-*.rfi ../out/
#rsync --progress -v -a pi@192.168.99.31:/home/pi/copy/tools/work/w*/disk${DISK}*-*.rfi ../out/
# now in /home/pi/PGS3/github/gcr-decode-exp/bbc-fdc-mod/tools/w
# also keep in a directory one up called rfi
rsync --progress -v -a pi@192.168.99.31:/home/pi/PGS3/github/gcr-decode-exp/bbc-fdc-mod/tools/work/w*/disk${DISK}*-*.rfi ../rfi/
./ripit1 "??" "?" ../rfi/disk${DISK}*-*.rfi | tee -a output/o${DISK}
./fm41fix2 | tee work/fm.out
TAG=`grep "Status:" work/fm.out | sed "s/Status: //"`
cat work/fm.out >> output/o${DISK}
D64=d64/data${DISK}-201903xx-auto-$TAG.d64
cat data/track*dat >$D64
c1541 $D64 -dir > ${DISK}-dir.txt 2>&1
cat work/tmpe.d64 > d64/data${DISK}-201903xx-auto-$TAG-errblock.d64
mkdir -p extract/e${DISK} 2>/dev/null
cd extract/e${DISK} || exit 1
cp -p ../../1.png ${DISK}.png 2>/dev/null
mv ../../${DISK}-dir.txt .
echo "--------------------------------" | tee -a ../../output/o${DISK}
cat ${DISK}-dir.txt | egrep -v "archdep_unix.c:" | tee -a ../../output/o${DISK}
echo "--------------------------------" | tee -a ../../output/o${DISK}
c1541 ../../$D64 -extract >>../../output/o${DISK} 2>&1
if [ 1 -eq 0 ]
then
cd ..
cd g64
if [ $? -ne 0 ]
then
exit 2
fi
make g64cr && ./g64cr >${DISK}.auto-$TAG.g64 2>2
fi
echo "done"
#######
# END #
#######