mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-22 04:21:23 +00:00
11 lines
382 B
Batchfile
11 lines
382 B
Batchfile
|
@ECHO OFF
|
||
|
set REV=Unknown
|
||
|
copy nul: /b +%1\comptime.c tmp.$$$ > nul
|
||
|
move tmp.$$$ %1\comptime.c > nul
|
||
|
SET REV=illegal
|
||
|
FOR /F "usebackq" %%s IN (`svnversion %1`) DO @SET REV=%%s
|
||
|
ECHO // Do not edit! This file was autogenerated > %1\comptime.h
|
||
|
ECHO // by the %0 batch file >> %1\comptime.h
|
||
|
ECHO // >> %1\comptime.h
|
||
|
ECHO const char* comprevision = "r%REV%"; >> %1\comptime.h
|