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