mirror of
https://github.com/a2-4am/4live.git
synced 2024-12-21 11:29:20 +00:00
fix automated build of disk image to patch in stubbed file length of 4live binary
This commit is contained in:
parent
715fca1992
commit
ba3580516c
6
Makefile
6
Makefile
@ -22,6 +22,7 @@ SRC=src
|
|||||||
# project files
|
# project files
|
||||||
BLANKDISK=$(RES)/work.dsk
|
BLANKDISK=$(RES)/work.dsk
|
||||||
BUILDDISK=$(BUILD)/$(PGM).dsk
|
BUILDDISK=$(BUILD)/$(PGM).dsk
|
||||||
|
TEMPDISK=$(BUILD)/temp.dsk
|
||||||
|
|
||||||
# third-party tools required to build
|
# third-party tools required to build
|
||||||
# https://sourceforge.net/projects/acme-crossass/
|
# https://sourceforge.net/projects/acme-crossass/
|
||||||
@ -39,5 +40,8 @@ $(PGM):
|
|||||||
mkdir -p $(BUILD)
|
mkdir -p $(BUILD)
|
||||||
cd $(SRC) && $(ACME) -o ../$(BUILD)/$(PGM) $(PGM).a && cd -
|
cd $(SRC) && $(ACME) -o ../$(BUILD)/$(PGM) $(PGM).a && cd -
|
||||||
cp $(BLANKDISK) $(BUILDDISK)
|
cp $(BLANKDISK) $(BUILDDISK)
|
||||||
java -jar $(AC) -p $(BUILDDISK) $(A2PGM) B 0x8000 < $(BUILD)/$(PGM)
|
java -jar $(AC) -cc65 $(BUILDDISK) $(A2PGM) B < $(BUILD)/$(PGM)
|
||||||
|
rsync -a $(BUILDDISK) $(TEMPDISK)
|
||||||
|
(xxd -p -c256 $(TEMPDISK)| head -49; xxd -p -c256 $(BUILD)/$(PGM) | head -1; xxd -p -c256 $(TEMPDISK)| tail -510) | xxd -r -p > $(BUILDDISK)
|
||||||
|
rm -f $(TEMPDISK)
|
||||||
osascript $(BIN)/V2Make.scpt "`pwd`" $(BUILDDISK)
|
osascript $(BIN)/V2Make.scpt "`pwd`" $(BUILDDISK)
|
||||||
|
Loading…
Reference in New Issue
Block a user