Add engine VERSION file.

This commit is contained in:
Paul Chote
2017-06-03 15:55:05 +00:00
committed by Oliver Brakmann
parent 82758a8bef
commit 49f0e35bd7
3 changed files with 4 additions and 1 deletions

View File

@@ -313,7 +313,8 @@ dependencies: $(os-dependencies)
all-dependencies: cli-dependencies windows-dependencies osx-dependencies geoip-dependencies
version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml
version: VERSION mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modcontent/mod.yaml mods/all/mod.yaml
@echo "$(VERSION)" > VERSION
@for i in $? ; do \
awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \
awk '{sub("/[^/]*: User$$", "/$(VERSION): User"); print $0}' $${i}.tmp > $${i} && \

1
VERSION Normal file
View File

@@ -0,0 +1 @@
{DEV_VERSION}

View File

@@ -74,6 +74,7 @@ function Version-Command
if ($version -ne $null)
{
$version | out-file ".\VERSION"
$mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/modcontent/mod.yaml", "mods/all/mod.yaml")
foreach ($mod in $mods)
{