Add engine VERSION file.
This commit is contained in:
committed by
Oliver Brakmann
parent
82758a8bef
commit
49f0e35bd7
3
Makefile
3
Makefile
@@ -313,7 +313,8 @@ dependencies: $(os-dependencies)
|
|||||||
|
|
||||||
all-dependencies: cli-dependencies windows-dependencies osx-dependencies geoip-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 \
|
@for i in $? ; do \
|
||||||
awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \
|
awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \
|
||||||
awk '{sub("/[^/]*: User$$", "/$(VERSION): User"); print $0}' $${i}.tmp > $${i} && \
|
awk '{sub("/[^/]*: User$$", "/$(VERSION): User"); print $0}' $${i}.tmp > $${i} && \
|
||||||
|
|||||||
1
make.ps1
1
make.ps1
@@ -74,6 +74,7 @@ function Version-Command
|
|||||||
|
|
||||||
if ($version -ne $null)
|
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")
|
$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)
|
foreach ($mod in $mods)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user