author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Fri, 02 Jun 2017 22:26:06 +0100 | |
branch | jv |
changeset 1508 | b2b32caf589e |
parent 1483 | 87e6026f8982 |
child 1514 | 4bdcdc52e55a |
permissions | -rwxr-xr-x |
349 | 1 |
@echo off |
2 |
: $Header$ |
|
3 |
: startup script for smalltalk |
|
4 |
: actually, simply calls stx, passing all arguments. |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
5 |
|
349 | 6 |
: In previous versions, smalltalk used to be the executable itself. |
7 |
: This lead to problems on systems, where things like the PATH |
|
997 | 8 |
: or STX_LIBDIR should be set in advance. |
349 | 9 |
: Now, here is a place to do such things ... |
10 |
||
11 |
if {%1}=={--help} goto usage |
|
12 |
||
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
13 |
|
349 | 14 |
: change the line below, if |
15 |
: the support stuff is not found in the |
|
997 | 16 |
: directory where stx.com / stx.exe resides ... |
349 | 17 |
: STX_LIB_DIR=<path_to_support_files> |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
18 |
set STX_BIN_DIR=%~dp0 |
1483
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
19 |
set VERSION=6.2.6 |
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
20 |
if exist %STX_BIN_DIR%\stx-bin.com ( |
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
21 |
set "STX_HOME=%STX_BIN_DIR%.." |
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
22 |
set "STX_TOPDIR=%STX_BIN_DIR%..\lib\smalltalkx\%VERSION%" |
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
23 |
set "STX_LIBDIR=%STX_BIN_DIR%..\lib\smalltalkx\%VERSION%\lib" |
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
24 |
set "STX_EXE=%STX_BIN_DIR%stx-bin.com" |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
25 |
) else ( |
1508
b2b32caf589e
Issue #147: Remove doubled backslash from STX_EXE variable
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1483
diff
changeset
|
26 |
set "STX_EXE=%STX_BIN_DIR%stx.com" |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
27 |
) |
349 | 28 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
29 |
|
1483
87e6026f8982
Win32: Fixed startup script `smalltalk.bat`
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
30 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
31 |
%STX_EXE% %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 |
349 | 32 |
goto end |
33 |
||
34 |
:usage |
|
35 |
echo. |
|
36 |
echo usage: smalltalk stx-args |
|
37 |
echo. |
|
38 |
echo STX args: |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
997
diff
changeset
|
39 |
%STX_EXE% --help |
349 | 40 |
|
41 |
:end |