From 2ddd55d7a428cda116cda0303a565ea81a3d41f8 Mon Sep 17 00:00:00 2001 From: Ian C Date: Sun, 25 Mar 2007 19:29:10 +0000 Subject: 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. --- mkrelease.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mkrelease.sh') 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 -- cgit v1.2.3