Bernhard M. Wiedemann
56c2d998d9
Allow to override build date with SOURCE_DATE_EPOCH
...
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good
and https://reproducible-builds.org/specs/source-date-epoch/
for the definition of this variable.
This patch was done while working on reproducible builds for openSUSE.
2022-09-25 12:08:55 +02:00
Sebastien Alaiwan
f94e4ae4b0
genversion: fix minor memory leak
2022-07-05 13:24:18 +02:00
Sebastien Alaiwan
0b97df3666
Cleanup: dead local variables
2022-07-05 13:24:18 +02:00
Tim Felgentreff
b15b6ba4ca
fix debian build rules
2020-12-19 10:38:45 +01:00
Tim Felgentreff
08c93416c0
expand version.h with last modified times
2020-11-23 10:02:08 +01:00
Tim Felgentreff
301c6dfc93
fix oob write in genversion
2020-11-09 10:46:47 +01:00
Tim Felgentreff
a7649ad71d
try fix genversion for appveyir
2020-07-04 22:06:51 +02:00
Tim Felgentreff
98342dd0e0
fix genversion
2020-07-04 21:39:51 +02:00
Tim Felgentreff
f38702ee81
Update genversion tool to avoid recreating file
2020-07-01 10:12:41 +02:00
Tim Felgentreff
6034ff515d
fix genversion if not running in git repo
2015-12-08 12:01:52 +01:00
Tim Felgentreff
4fb42250d3
and of course, if not using the m flag on fscanf, we need to pass char*, not char**
2015-12-08 11:45:01 +01:00
Tim Felgentreff
31e8b89a14
forgot allocation
2015-12-08 11:41:11 +01:00
Tim Felgentreff
7c62bfaf95
m modifier isn't supported on Windows fscanf implementation
2015-12-08 11:38:07 +01:00
Tim Felgentreff
5345a4cdeb
update genversion to use GitRev
2015-12-08 10:29:13 +01:00
Pali Rohár
a0ff593ed8
Generate version string at compile time from CMakeLists.txt and from bzr revision
...
* Move StratagusMajorVersion, StratagusMinorVersion, StratagusPatchLevel and StratagusPatchLevel2 to CMakeLists.txt
* Added tool genversion.cpp which (re)generate file version-generated.h from cmake if needed
* Fill VERSION macro from other values with C preprocessor instead hardcoded values
* Remove macros StratagusFormatString and StratagusFormatArgs from code, use only VERSION
2013-02-05 22:16:43 +01:00