]> git.sur5r.net Git - c128-kasse/commitdiff
Create disk images from scratch
authorJakob Haufe <sur5r@sur5r.net>
Sat, 5 Nov 2016 13:03:59 +0000 (14:03 +0100)
committerJakob Haufe <sur5r@sur5r.net>
Sat, 5 Nov 2016 13:03:59 +0000 (14:03 +0100)
c1541 can create empty images, no need to have them in git.
This also makes image creation more reproducible.

Makefile
images/kasse.d64 [deleted file]
images/test.d64 [deleted file]

index af0909d1e6dd61b5684b9c4ecb0416984f67ebe3..6098e13d0afd79f31b7b1b6310972380e78bcfc4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,25 +26,19 @@ cat: src/general.o src/cat.o
        ${LD} -t c128 $^ -o $@
 
 package: all
-       cp images/kasse.d64 .
-       c1541 -attach kasse.d64 -delete state || exit 0 
-       c1541 -attach kasse.d64 -delete items || exit 0
-       c1541 -attach kasse.d64 -delete kasse || exit 0
-       c1541 -attach kasse.d64 -delete itemz || exit 0
+       c1541 -format "${GV}",KA d64 kasse.d64
        c1541 -attach kasse.d64 -write kasse || exit 0
        c1541 -attach kasse.d64 -write itemz || exit 0
-#      c1541 -attach kasse.d64 -write state || exit 0 
-#      c1541 -attach kasse.d64 -write items || exit 0
+       [ -e state ] && c1541 -attach kasse.d64 -write state
+       [ -e items ] && c1541 -attach kasse.d64 -write items
 
 test: src/config.o test/test.o src/general.o
        cl65 -t c128 src/config.o test/test.o src/general.o -o test
 
 test-package: test
-       c1541 -attach test.d64 -delete state || exit 0 
-       c1541 -attach test.d64 -delete items || exit 0
-       c1541 -attach test.d64 -delete test || exit 0
+       c1541 -format "test",TE d64 test.d64
        c1541 -attach test.d64 -write test || exit 0
-       c1541 -attach test.d64 -write state || exit 0 
+       c1541 -attach test.d64 -write state || exit 0
        c1541 -attach test.d64 -write items || exit 0
 
 clean:
diff --git a/images/kasse.d64 b/images/kasse.d64
deleted file mode 100644 (file)
index b279629..0000000
Binary files a/images/kasse.d64 and /dev/null differ
diff --git a/images/test.d64 b/images/test.d64
deleted file mode 100644 (file)
index 4243532..0000000
Binary files a/images/test.d64 and /dev/null differ