From: Jakob Haufe Date: Sat, 5 Nov 2016 13:11:02 +0000 (+0100) Subject: Fix handling of maybe-absent files X-Git-Tag: rgb2rv17~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc7f54385c5bf75dbb6153c73ed506f21afbcd7d;p=c128-kasse Fix handling of maybe-absent files "state" and "items" might not exist, so fail gracefully when creating the disk image. --- diff --git a/Makefile b/Makefile index 6098e13..7c4a202 100644 --- 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