author | Jan Vrany <jan.vrany@fit.cvut.cz> |
Tue, 29 May 2018 22:00:27 +0100 | |
branch | jv |
changeset 1557 | ba6fffa61f07 |
parent 1527 | c882cd8db4f7 |
child 1563 | c29b69fe8082 |
permissions | -rwxr-xr-x |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
1 |
#!/bin/bash |
151 | 2 |
|
3 |
# $Header$ |
|
4 |
# |
|
5 |
# |
|
6 |
# startup script for smalltalk |
|
7 |
# actually, simply calls stx, passing all arguments. |
|
8 |
# |
|
9 |
||
10 |
# In previous versions, smalltalk used to be the executable itself. |
|
11 |
# This lead to problems on systems, where things like LD_LIBRARY_PATH |
|
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
12 |
# should be set in advance. |
151 | 13 |
# Now, here is a place to do such things ... |
14 |
||
164 | 15 |
# |
192 | 16 |
# -x name specifies an explicit executable |
277 | 17 |
# to avoid executing another stx from some directory along the PATH |
18 |
# (i.e to force use: ./smalltalk -x ./stx) |
|
192 | 19 |
# |
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
20 |
# -X name specifies an explicit path to the stx executable |
277 | 21 |
# to avoid executing another stx from some directory along the PATH |
22 |
# (i.e to force use: ./smalltalk -X .) |
|
341 | 23 |
# [almost the same as above] |
277 | 24 |
# |
25 |
# -ldd show ldd-output (to debug, which libs are loaded) |
|
26 |
# |
|
281 | 27 |
# all other args go to stx & the user classes |
277 | 28 |
# |
1527
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
29 |
STX_VERSION_DEFAULT=6.2.6 |
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
30 |
|
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
31 |
# Do not change following line, $STX_VERSION_DEFAULT serves |
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
32 |
# as placeholder and it's being replaced during installation |
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
33 |
# process. |
c882cd8db4f7
Launcher scripts refactored to allow release scripts to change Smalltalk/X version
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1525
diff
changeset
|
34 |
STX_VERSION=$STX_VERSION_DEFAULT |
277 | 35 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
36 |
STX_EXE=stx |
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
37 |
STX_BIN_DIR=$(dirname $0) |
439 | 38 |
DEBUGGER= |
39 |
||
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
40 |
if ! test -f "$STX_BIN_DIR/Make.proto"; then |
1557
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
41 |
# Running in Smalltalk/X jv-branch from and "installation tree" |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
42 |
STX_HOME="$STX_BIN_DIR/.." |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
43 |
STX_TOPDIR="$STX_HOME/lib/smalltalkx/$STX_VERSION" |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
44 |
STX_LIBDIR="$STX_TOPDIR/lib" |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
45 |
STX_PACKAGEDIR="$STX_TOPDIR%/packages" |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
46 |
STX_EXE="$STX_TOPDIR/bin/stx-bin" |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
47 |
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$STX_LIBDIR/lib" |
452 | 48 |
fi |
49 |
||
476
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
50 |
if [ "$STX_LIBDIR" != "" ] |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
51 |
then |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
52 |
if [ ! -f $STX_LIBDIR/smalltalk.rc ] |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
53 |
then |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
54 |
echo "smalltalk [warning]: ignore wrong STX_LIBDIR setting ($STX_LIBDIR)" |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
55 |
STX_LIBDIR="" |
476
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
56 |
fi |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
57 |
fi |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
58 |
|
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
59 |
|
383 | 60 |
# notice: STXLIBDIR is filled in here by install-sh script |
319 | 61 |
if test -z "$STX_LIBDIR" |
62 |
then |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
63 |
bindir=`dirname $0` |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
64 |
case "$bindir" in |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
65 |
/* ) |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
66 |
;; |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
67 |
.* ) |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
68 |
bindir=`( cd $bindir; pwd ) 2> /dev/null` |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
69 |
;; |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
70 |
esac |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
71 |
if [ -d ${bindir}/../lib ] |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
72 |
then |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
73 |
STX_LIBDIR=`cd ${bindir}/../lib ; pwd` |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
74 |
fi |
319 | 75 |
fi |
452 | 76 |
|
476
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
77 |
if [ -z "$STX_LIBDIR" ] |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
78 |
then |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
79 |
if [ -d ../lib ] |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
80 |
then |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
81 |
STX_LIBDIR=`cd ../lib ; pwd` |
476
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
82 |
fi |
25c3df1d5c43
ignore invalid STX_LIBDIR setting
Claus Gittinger <cg@exept.de>
parents:
454
diff
changeset
|
83 |
fi |
435 | 84 |
if [ ! -d "$STX_LIBDIR" ] |
383 | 85 |
then |
86 |
if [ -d ../lib ] |
|
87 |
then |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
88 |
STX_LIBDIR=`cd ../lib ; pwd` |
383 | 89 |
fi |
90 |
fi |
|
452 | 91 |
|
401 | 92 |
if test -z "$STX_TOPDIR" |
93 |
then |
|
94 |
if [ -f ../lib/smalltalk.rc ] |
|
95 |
then |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
96 |
STX_TOPDIR=`cd .. ; pwd` |
434
f073cdbe422f
oops - LIBDIR/TOPDIR & PACKAGEDIR detection failed,
Claus Gittinger <cg@exept.de>
parents:
401
diff
changeset
|
97 |
else |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
98 |
if [ -f $STX_LIBDIR/../lib/smalltalk.rc ] |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
99 |
then |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
100 |
STX_TOPDIR=`cd $STX_LIBDIR/.. ; pwd` |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
101 |
else |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
102 |
if [ -f $STX_BIN_DIR/smalltalk.rc ] |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
103 |
then |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
104 |
STX_TOPDIR=`cd $STX_BIN_DIR/../.. ; pwd` |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
105 |
fi |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
106 |
fi |
401 | 107 |
fi |
108 |
fi |
|
383 | 109 |
|
434
f073cdbe422f
oops - LIBDIR/TOPDIR & PACKAGEDIR detection failed,
Claus Gittinger <cg@exept.de>
parents:
401
diff
changeset
|
110 |
# echo STX_LIBDIR is $STX_LIBDIR |
f073cdbe422f
oops - LIBDIR/TOPDIR & PACKAGEDIR detection failed,
Claus Gittinger <cg@exept.de>
parents:
401
diff
changeset
|
111 |
# echo STX_TOPDIR is $STX_TOPDIR |
f073cdbe422f
oops - LIBDIR/TOPDIR & PACKAGEDIR detection failed,
Claus Gittinger <cg@exept.de>
parents:
401
diff
changeset
|
112 |
|
1445
88a4f36a6912
Issue #98: Removed use of STX_PACKAGEDIR from startup scripts
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1435
diff
changeset
|
113 |
export STX_LIBDIR STX_TOPDIR |
452 | 114 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
115 |
# echo STX is $STX_EXE |
277 | 116 |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
117 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
118 |
if [ "$1" = "--help" ] |
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
119 |
then |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
120 |
echo " |
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
121 |
usage: $(basename $0) [-x prog] [-X dir] [--ldd] [--gdb] |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
122 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
123 |
args to startup script: |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
124 |
-x prog ................ use prog instead of stx as executable |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
125 |
-X dir ................. use stx from dir instead of default (PATH) |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
126 |
--ldd .................. show which shared libraries are used |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
127 |
--gdb .................. run with gdb-Debugger (type r in debugger to start) |
1512
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
128 |
--gdb .................. run with Visual / VM Debugger |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
129 |
--cgdb ................. run with cgdb-Debugger (type r in debugger to start) |
1432
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
130 |
--callgrind ............ run under callgrind profiler tool with profiling off - |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
131 |
use this to profile some benchmark |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
132 |
--callgrind-startup .... run under callgrind profiler tool with profiling on |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
133 |
- use this to profile VM startup |
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
134 |
--stap SCRIPT .......... run given systemtap script, passing stx command as |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
135 |
stap -c 'stx ...' Systemtap may not be compiled in. |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
136 |
" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
137 |
fi |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
138 |
|
193 | 139 |
if [ "$1" = "-x" ] |
192 | 140 |
then |
141 |
shift |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
142 |
STX_EXE=$1 |
192 | 143 |
shift |
277 | 144 |
fi |
145 |
||
146 |
if [ "$1" = "-X" ] |
|
147 |
then |
|
148 |
shift |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
149 |
STX_EXE=$1/stx |
277 | 150 |
shift |
192 | 151 |
fi |
152 |
||
482 | 153 |
if [ "$1" = "--gdb" ] |
439 | 154 |
then |
155 |
shift |
|
1432
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
156 |
DEBUGGER="gdb --args" |
439 | 157 |
fi |
158 |
||
1512
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
159 |
if [ "$1" = "--vdb" ] |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
160 |
then |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
161 |
if which "vdb"; then |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
162 |
VDB=vdb |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
163 |
elif [ -x "$STX_BIN_DIR/../../../jv/vdb/application/vdb" ]; then |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
164 |
VDB="$STX_BIN_DIR/../../../jv/vdb/application/vdb" |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
165 |
else |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
166 |
echo "$0: could not find Visual / VM Debugger (vdb)" |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
167 |
exit 1 |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
168 |
fi |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
169 |
shift |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
170 |
DEBUGGER="$VDB" |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
171 |
fi |
507674c6d84b
UNIX: Added new option `--vdb` to run under Visual / VM Debugger.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1450
diff
changeset
|
172 |
|
1133
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
173 |
if [ "$1" = "--cgdb" ] |
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
174 |
then |
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
175 |
shift |
1432
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
176 |
DEBUGGER="cgdb --args" |
1133
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
177 |
fi |
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
178 |
|
1274
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
179 |
if [ "$1" = "--callgrind" ] |
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
180 |
then |
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
181 |
shift |
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
182 |
DEBUGGER="valgrind --tool=callgrind --instr-atstart=no" |
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
183 |
fi |
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
184 |
|
1432
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
185 |
if [ "$1" = "--callgrind-startup" ] |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
186 |
then |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
187 |
shift |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
188 |
DEBUGGER="valgrind --tool=callgrind" |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
189 |
fi |
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
190 |
|
1e235b190ee3
Added --callgrind-startup option
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1326
diff
changeset
|
191 |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
192 |
if [ "$1" = "--stap" ] |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
193 |
then |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
194 |
shift |
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
195 |
if [ -z "$1" ]; then |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
196 |
echo "--stap requires systemtap script to run" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
197 |
exit 1 |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
198 |
fi |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
199 |
if [ ! -r "$1" ]; then |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
200 |
echo "$1 is not a readable systemtap script" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
201 |
echo "--stap requires systemtap script to run" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
202 |
exit 1 |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
203 |
fi |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
204 |
STAPSCRIPT=$1 |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
205 |
shift |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
206 |
fi |
1274
d087caa28ae3
Added --callgrind option to run under callgrind profiler
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1133
diff
changeset
|
207 |
|
1133
c4e732341636
Added --cgdb option to run St/X under CGDB
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
482
diff
changeset
|
208 |
|
482 | 209 |
if [ "$1" = "--ldd" ] |
262 | 210 |
then |
211 |
shift |
|
341 | 212 |
DEBUGLIB=yes |
262 | 213 |
fi |
214 |
||
192 | 215 |
# |
216 |
# |
|
164 | 217 |
# some have Xlibs in /usr/openwin/lib ... |
218 |
# |
|
157 | 219 |
if [ -d /usr/openwin/lib ] |
220 |
then |
|
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
221 |
if [ "$LD_LIBRARY_PATH" != "" ] |
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
222 |
then |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
223 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/openwin/lib:/usr/local/lib/smalltalk/lib |
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
224 |
else |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
225 |
LD_LIBRARY_PATH=/usr/openwin/lib:/usr/local/lib/smalltalk/lib |
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
226 |
fi |
315 | 227 |
if [ "$SHLIB_PATH" != "" ] |
228 |
then |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
229 |
SHLIB_PATH=$SHLIB_PATH:/usr/openwin/lib:/usr/local/lib/smalltalk/lib |
315 | 230 |
else |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
231 |
SHLIB_PATH=/usr/openwin/lib:/usr/local/lib/smalltalk/lib |
315 | 232 |
fi |
157 | 233 |
else |
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
234 |
if [ "$LD_LIBRARY_PATH" != "" ] |
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
235 |
then |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
236 |
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/smalltalk/lib |
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
237 |
else |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
238 |
LD_LIBRARY_PATH=/usr/local/lib/smalltalk/lib |
234
861d75db3bec
do not clobber existing LD_LIBRARY_PATH
Claus Gittinger <cg@exept.de>
parents:
193
diff
changeset
|
239 |
fi |
315 | 240 |
if [ "$SHLIB_PATH" != "" ] |
241 |
then |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
242 |
SHLIB_PATH=$SHLIB_PATH:/usr/local/lib/smalltalk/lib |
315 | 243 |
else |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
244 |
SHLIB_PATH=/usr/local/lib/smalltalk/lib |
315 | 245 |
fi |
157 | 246 |
fi |
164 | 247 |
|
248 |
# |
|
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
249 |
# if started via ./smalltalk, prepend . to the PATH |
314
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
250 |
# (to allow test of ./stx even when stx is found along the PATH) |
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
251 |
# |
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
252 |
case $0 in |
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
253 |
./*) |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
254 |
PATH=.:$PATH |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
255 |
export PATH |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
256 |
;; |
314
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
257 |
esac |
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
258 |
|
7fbaf542c38c
prepend . to the path, if command was executed as ./xxxx
Claus Gittinger <cg@exept.de>
parents:
286
diff
changeset
|
259 |
# |
280 | 260 |
# debugging which stx & shared libs are used ... |
247 | 261 |
# |
344 | 262 |
whichOne=`/bin/sh -c "type $STX"` |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
263 |
if [ "$STX_EXE" = "stx" ] |
341 | 264 |
then |
265 |
if [ -f stx ] |
|
266 |
then |
|
267 |
whichOne=`/bin/sh -c "type stx"` |
|
268 |
if [ "$whichOne" != "stx is ./stx" ] |
|
269 |
then |
|
270 |
echo "************* WARNING the executed" $whichOne |
|
271 |
echo "************* (may not be appropriate for used shared libs)" |
|
272 |
echo "************* Try './smalltalk -ldd' for more details" |
|
273 |
echo "************* or force the local stx to be used with" |
|
274 |
echo "************* './smalltalk -x ./stx'" |
|
275 |
echo |
|
276 |
fi |
|
277 |
fi |
|
278 |
fi |
|
279 |
||
280 | 280 |
if [ "$DEBUGLIB" = "yes" ] |
277 | 281 |
then |
344 | 282 |
echo "used " $whichOne |
341 | 283 |
echo "used LD_LIBRARY_PATH is " $LD_LIBRARY_PATH |
284 |
echo "used SHLIB_PATH is " $SHLIB_PATH |
|
285 |
echo "used STX_LIBDIR is " $STX_LIBDIR |
|
286 |
case `uname` in |
|
287 |
HP-UX*) |
|
288 |
chatr $STX |
|
289 |
;; |
|
277 | 290 |
|
341 | 291 |
*) |
292 |
ldd -r $STX |
|
293 |
;; |
|
294 |
esac |
|
262 | 295 |
fi |
247 | 296 |
|
316 | 297 |
# |
298 |
# how did HP mess up things so badly ? |
|
299 |
# It takes a veeeery long time for stx to start |
|
1525
0275f69b9d05
UNIX: Set `LD_LIBRARY_PATH` only when running from "install tree"
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1512
diff
changeset
|
300 |
# (the spinning wheel is shown when stx's main |
316 | 301 |
# starts to run - all the time in between is |
302 |
# spent in the systems loader ...) |
|
303 |
# |
|
449 | 304 |
# if [ "`uname`" = "HP-UX" ] |
305 |
# then |
|
306 |
# echo "Please be patient - hp systems are very slow." |
|
307 |
# fi |
|
316 | 308 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
309 |
PATH=$PATH:$STX_BIN_DIR |
269 | 310 |
export PATH |
452 | 311 |
# echo PATH is $PATH |
312 |
# echo DISPLAY is $DISPLAY |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
313 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
314 |
|
1557
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
315 |
# |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
316 |
# When running on modern DE (such as GNOME or KDE), install |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
317 |
# .desktop and .svg so to get nice(r) icon and - more importantly - |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
318 |
# proper window grouping in task list. |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
319 |
# |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
320 |
# See issue #66: https://swing.fit.cvut.cz/projects/stx-jv/ticket/66 |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
321 |
# |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
322 |
if [ ! -z "$XDG_CURRENT_DESKTOP" ]; then |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
323 |
icon_dir=~/.local/share/icons/hicolor/scalable/apps |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
324 |
dskp_dir=~/.local/share/applications |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
325 |
if [ ! -f "$icon_dir/smalltalkx.svg" ]; then |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
326 |
mkdir -p "$icon_dir" || true |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
327 |
cp "$STX_BIN_DIR/smalltalkx.svg" "$icon_dir" || true |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
328 |
fi |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
329 |
if [ ! -f "$dskp_dir/smalltalkx.desktop" ]; then |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
330 |
mkdir -p "$dskp_dir" || true |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
331 |
cp "$STX_BIN_DIR/smalltalkx.desktop" "$dskp_dir" || true |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
332 |
fi |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
333 |
fi |
ba6fffa61f07
Issue #66: UNIX: install icon and `.desktop` for Smalltalk/X
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1527
diff
changeset
|
334 |
|
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
335 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
336 |
if [ ! -z "$STAPSCRIPT" ]; then |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
337 |
echo "$STX_TOPDIR/stx/hacking/tapset" |
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
338 |
CMD="$STX_EXE $@" |
1326
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
339 |
echo "$CMD" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
340 |
exec stap --unprivileged $STAPSCRIPT -I "$STX_TOPDIR/hacking/tapset" -c "$CMD" |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
341 |
fi |
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
342 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
343 |
|
e6197baf42c8
Initial support for systemtap.
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1274
diff
changeset
|
344 |
|
1435
9a1f18933e40
Merged code from jv-branch's 'distutils' package
Jan Vrany <jan.vrany@fit.cvut.cz>
parents:
1432
diff
changeset
|
345 |
exec $DEBUGGER $STX_EXE ${1+"$@"} |