diff --git a/Makefile b/Makefile index ecde9d2d0a..d5450cfbf4 100644 --- a/Makefile +++ b/Makefile @@ -320,7 +320,8 @@ all-dependencies: cli-dependencies windows-dependencies osx-dependencies version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/ts/mod.yaml mods/modchooser/mod.yaml mods/all/mod.yaml @for i in $? ; do \ awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \ - mv -f $${i}.tmp $${i} ; \ + awk '{sub("\tmodchooser:.*$$","\tmodchooser: $(VERSION)"); print $0}' $${i}.tmp > $${i} && \ + rm $${i}.tmp ; \ done docs: utility mods version diff --git a/make.ps1 b/make.ps1 index f625bd9f16..eccb8b91ee 100644 --- a/make.ps1 +++ b/make.ps1 @@ -113,6 +113,8 @@ elseif ($command -eq "version") { $replacement = (gc $mod) -Replace "Version:.*", ("Version: {0}" -f $version) sc $mod $replacement + $replacement = (gc $mod) -Replace "modchooser:.*", ("modchooser: {0}" -f $version) + sc $mod $replacement } echo ("Version strings set to '{0}'." -f $version) }