From: Jakob Haufe Date: Sat, 5 Nov 2016 13:03:59 +0000 (+0100) Subject: Create disk images from scratch X-Git-Tag: rgb2rv17~23 X-Git-Url: https://git.sur5r.net/?p=c128-kasse;a=commitdiff_plain;h=c750c264af6634734637b009114968f0fee0660b Create disk images from scratch c1541 can create empty images, no need to have them in git. This also makes image creation more reproducible. --- diff --git a/Makefile b/Makefile index af0909d..6098e13 100644 --- 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 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 index 4243532..0000000 Binary files a/images/test.d64 and /dev/null differ