]> git.sur5r.net Git - c128-kasse/commitdiff
Fix handling of maybe-absent files
authorJakob Haufe <sur5r@sur5r.net>
Sat, 5 Nov 2016 13:11:02 +0000 (14:11 +0100)
committerJakob Haufe <sur5r@sur5r.net>
Sat, 5 Nov 2016 13:11:02 +0000 (14:11 +0100)
"state" and "items" might not exist, so fail gracefully when creating
the disk image.

Makefile

index 6098e13d0afd79f31b7b1b6310972380e78bcfc4..7c4a2027fce189fbb164ad42d4383d4363492f7a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,10 +27,10 @@ cat: src/general.o src/cat.o
 
 package: all
        c1541 -format "${GV}",KA d64 kasse.d64
-       c1541 -attach kasse.d64 -write kasse || exit 0
-       c1541 -attach kasse.d64 -write itemz || exit 0
-       [ -e state ] && c1541 -attach kasse.d64 -write state
-       [ -e items ] && c1541 -attach kasse.d64 -write items
+       c1541 -attach kasse.d64 -write kasse
+       c1541 -attach kasse.d64 -write itemz
+       [ -e state ] && c1541 -attach kasse.d64 -write state || exit 0
+       [ -e items ] && c1541 -attach kasse.d64 -write items || exit 0
 
 test: src/config.o test/test.o src/general.o
        cl65 -t c128 src/config.o test/test.o src/general.o -o test