diff options
author | Ian C <ianc@noddybox.co.uk> | 2007-03-25 19:29:10 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2007-03-25 19:29:10 +0000 |
commit | 2ddd55d7a428cda116cda0303a565ea81a3d41f8 (patch) | |
tree | 996f3ad95df6e1f62eef0d4dc6eb28353461241e /mkrelease.sh | |
parent | 8746d4da5b8612560df2502ee8f6ebdcafa54262 (diff) |
Added code to allow mkrelease to pick up a version number from the version file. If built without the flag then main generates a build timestamp.
Diffstat (limited to 'mkrelease.sh')
-rw-r--r-- | mkrelease.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mkrelease.sh b/mkrelease.sh index 4002f4b..2de72d1 100644 --- a/mkrelease.sh +++ b/mkrelease.sh @@ -2,13 +2,15 @@ rm -f *.nds *.elf *.gba *.arm9 +version=`cat version` + make clean -make ADDITIONAL_CFLAGS="-DDS81_DISABLE_FAT" +make ADDITIONAL_CFLAGS="-DDS81_DISABLE_FAT -DDS81_VERSION=\"\\\"$version\\\"\"" mv ds81.nds ds81-nofat.nds mv ds81.ds.gba ds81-nofat.ds.gba make clean -make +make ADDITIONAL_CFLAGS="-DDS81_VERSION=\"\\\"$version\\\"\"" ./fat_patch.sh |