From bc7f54385c5bf75dbb6153c73ed506f21afbcd7d Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Sat, 5 Nov 2016 14:11:02 +0100 Subject: [PATCH] Fix handling of maybe-absent files "state" and "items" might not exist, so fail gracefully when creating the disk image. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2