diff --git a/Makefile b/Makefile index 0d59512b93..3e39454694 100644 --- a/Makefile +++ b/Makefile @@ -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} && \ diff --git a/VERSION b/VERSION new file mode 100644 index 0000000000..5c0d013319 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +{DEV_VERSION} diff --git a/make.ps1 b/make.ps1 index 820fbe4f7c..ce7e14930e 100644 --- a/make.ps1 +++ b/make.ps1 @@ -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) {