mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-14 00:40:46 +00:00
10 lines
382 B
Batchfile
10 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
|