fix TS mod not being versioned

This commit is contained in:
Matthias Mailänder
2015-08-02 17:08:33 +02:00
parent fb5db60d9d
commit a37e6a3625
2 changed files with 2 additions and 2 deletions

View File

@@ -311,7 +311,7 @@ dependencies: $(os-dependencies)
all-dependencies: cli-dependencies windows-dependencies osx-dependencies all-dependencies: cli-dependencies windows-dependencies osx-dependencies
version: mods/ra/mod.yaml mods/cnc/mod.yaml mods/d2k/mod.yaml mods/modchooser/mod.yaml mods/all/mod.yaml 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 \ @for i in $? ; do \
awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \ awk '{sub("Version:.*$$","Version: $(VERSION)"); print $0}' $${i} > $${i}.tmp && \
mv -f $${i}.tmp $${i} ; \ mv -f $${i}.tmp $${i} ; \

View File

@@ -107,7 +107,7 @@ elseif ($command -eq "version")
if ($version -ne $null) if ($version -ne $null)
{ {
$mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/modchooser/mod.yaml") $mods = @("mods/ra/mod.yaml", "mods/cnc/mod.yaml", "mods/d2k/mod.yaml", "mods/ts/mod.yaml", "mods/modchooser/mod.yaml")
foreach ($mod in $mods) foreach ($mod in $mods)
{ {
$replacement = (gc $mod) -Replace "Version:.*", ("Version: {0}" -f $version) $replacement = (gc $mod) -Replace "Version:.*", ("Version: {0}" -f $version)