diff options
author | Christian Pointner <equinox@anytun.org> | 2010-01-24 20:46:28 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-01-24 20:46:28 +0000 |
commit | baf3dd158ba2b7fcefc51ea01801e245066d1402 (patch) | |
tree | d757a093f3c06e221358782eedb7aff997c10dc2 /src/win32/make_version_h.bat | |
parent | added --version parameter (diff) |
fixed build on windows (version.h)
Diffstat (limited to 'src/win32/make_version_h.bat')
-rw-r--r-- | src/win32/make_version_h.bat | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/win32/make_version_h.bat b/src/win32/make_version_h.bat new file mode 100644 index 0000000..9506455 --- /dev/null +++ b/src/win32/make_version_h.bat @@ -0,0 +1,22 @@ +@echo off
+
+setlocal
+set /p VERSION=<..\version
+set OUTPUT_FILE=version.h
+
+echo /* > %OUTPUT_FILE%
+echo * anytun version info >> %OUTPUT_FILE%
+echo * >> %OUTPUT_FILE%
+echo * this file was created automatically >> %OUTPUT_FILE%
+echo * do not edit this file directly >> %OUTPUT_FILE%
+echo * use win32/make_version_h.bat instead >> %OUTPUT_FILE%
+echo */ >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #ifndef ANYTUN_version_h_INCLUDED >> %OUTPUT_FILE%
+echo #define ANYTUN_version_h_INCLUDED >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #define VERSION_STRING_0 " version %VERSION%" >> %OUTPUT_FILE%
+echo #define VERSION_STRING_1 "built on %COMPUTERNAME%, %DATE% %TIME%" >> %OUTPUT_FILE%
+echo. >> %OUTPUT_FILE%
+echo #endif >> %OUTPUT_FILE%
+
|