Take version number from SVN, or via VERSION variable in Makefile - i.e. use "make VERSION=v1.0" to build with that version number.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25774 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cdcca8775f
commit
9de9b9dfbe
2 changed files with 6 additions and 4 deletions
|
@ -1,7 +1,11 @@
|
|||
# This contains the file to upload
|
||||
ROMFILE=player.rom
|
||||
|
||||
CFLAGS=-Wall -W -I/usr/local/include
|
||||
ifndef VERSION
|
||||
VERSION=$(shell ../../tools/version.sh)
|
||||
endif
|
||||
|
||||
CFLAGS=-Wall -W -I/usr/local/include -DVERSION=\"$(VERSION)\"
|
||||
|
||||
ifeq ($(findstring CYGWIN,$(shell uname)),CYGWIN)
|
||||
OUTPUT=tcctool.exe
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
#include <unistd.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#define VERSION "0.1"
|
||||
|
||||
#define MAX_FIRMWARESIZE (10*1024*1024) /* Arbitrary limit (for safety) */
|
||||
|
||||
/* For win32 compatibility: */
|
||||
|
@ -265,7 +263,7 @@ int main(int argc, char* argv[])
|
|||
int fd;
|
||||
int device;
|
||||
|
||||
printf("tcctool v" VERSION " - (C) 2007 Dave Chapman\n");
|
||||
printf("tcctool " VERSION " - (C) 2007-2010 Dave Chapman\n");
|
||||
printf("This is free software; see the source for copying conditions. There is NO\n");
|
||||
printf("warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n");
|
||||
|
||||
|
|
Loading…
Reference in a new issue