summaryrefslogtreecommitdiff
path: root/src/win32/make_version_h.bat
blob: 9506455efc3101f5deb85312c652f2bdbc685110 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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%