diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-22 09:58:47 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-07-22 09:58:47 +0000 |
commit | ab540cc153c4ecd395db7d6367186ff04102b966 (patch) | |
tree | a9944740fd29f0067fa3214b95a1277945203a66 | |
parent | e9c0e831541d90f7b11085396b34871c5d56d0c2 (diff) |
Added version number to the fwpatcher build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7220 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | tools/fwpatcher/Makefile | 6 | ||||
-rw-r--r-- | tools/fwpatcher/main.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/tools/fwpatcher/Makefile b/tools/fwpatcher/Makefile index 7dd56f037b..922e2faf65 100644 --- a/tools/fwpatcher/Makefile +++ b/tools/fwpatcher/Makefile @@ -21,8 +21,12 @@ CC = $(PREFIX)gcc UNICODE = -DUNICODE -D_UNICODE +ifndef VERSION +VERSION=$(shell date +%y%m%d-%H%M) +endif + #values for crosscompiling on linux -CFLAGS = -I. -Os -s -fomit-frame-pointer +CFLAGS = -DAPPSVERSION=\"$(VERSION)\" -I. -Os -s -fomit-frame-pointer LDFLAGS = -lmingw32 -mwindows -s #values for compiling on cygwin diff --git a/tools/fwpatcher/main.c b/tools/fwpatcher/main.c index c16696a01c..1ec67678df 100644 --- a/tools/fwpatcher/main.c +++ b/tools/fwpatcher/main.c @@ -39,6 +39,8 @@ #define CTL_NUM 4 +TCHAR appsversion[] = TEXT("Rockbox firmware patcher V" APPSVERSION); + struct sumpairs { char *unpatched; char *patched; @@ -468,7 +470,7 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE prev_instance, wc.lpszClassName = TEXT("patcher"); RegisterClassEx(&wc); - window = CreateWindowEx(0, TEXT("patcher"), TEXT("Rockbox firmware patcher"), + window = CreateWindowEx(0, TEXT("patcher"), appsversion, WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, CW_USEDEFAULT, CW_USEDEFAULT, WINDOW_WIDTH, WINDOW_HEIGHT, 0, 0, instance, NULL); |