Issue #247: fix version patching in `stx.bat`
authorJan Vrany <jan.vrany@fit.cvut.cz>
Fri, 26 Oct 2018 09:50:38 +0100
changeset 259 7b62ce033d81
parent 258 65caf0201157
child 260 7aef1f1a5071
Issue #247: fix version patching in `stx.bat` ...in toy archive packaing scripts. Due to a wrong match pattern in patching code, Smalltalk/X version was not correctly patched, leading in wrong package path. This caused the ugly look as well a inavility to find sources and likely more other issues. This issue should be fixed now. https://swing.fit.cvut.cz/projects/stx-jv/ticket/247
rakelib/dist-jv.rake
--- a/rakelib/dist-jv.rake	Mon Sep 24 20:55:06 2018 +0100
+++ b/rakelib/dist-jv.rake	Fri Oct 26 09:50:38 2018 +0100
@@ -106,7 +106,7 @@
     case
       when win32?
         install BUILD_DIR / 'stx' / 'projects' / 'smalltalk'/ 'smalltalk.bat', bin_dir / 'stx.bat'
-        sed "SET stx_version=\"!stx_version_default!\"", "SET stx_version=#{version}", bin_dir / 'stx.bat', true
+        sed "SET \"stx_version=%stx_version_default%\"", "SET \"stx_version=#{version}\"", bin_dir / 'stx.bat', true
         install BUILD_DIR / 'stx' / 'projects' / 'smalltalk'/ 'smalltalk.ps1', bin_dir / 'smalltalk.ps1'
         install BUILD_DIR / 'stx' / 'projects' / 'smalltalk'/ 'smalltalk.cfg', bin_dir / 'smalltalk.cfg'
       when unix?