Update make version to change the required mod target versions

This commit is contained in:
Pavel Penev
2015-09-28 22:10:57 +03:00
parent 2faf15bad7
commit 1d93bf0500
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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)
}