summaryrefslogtreecommitdiff
path: root/mkrelease.sh
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2007-03-25 19:29:10 +0000
committerIan C <ianc@noddybox.co.uk>2007-03-25 19:29:10 +0000
commit2ddd55d7a428cda116cda0303a565ea81a3d41f8 (patch)
tree996f3ad95df6e1f62eef0d4dc6eb28353461241e /mkrelease.sh
parent8746d4da5b8612560df2502ee8f6ebdcafa54262 (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.sh6
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