1 |
johnpye |
440 |
#!/bin/sh |
2 |
|
|
|
3 |
|
|
if [ "x$ASCENDLIBRARY" != "x" ]; then |
4 |
|
|
echo "USING ASCENDLIBRARY=$ASCENDLIBRARY" |
5 |
johnpye |
482 |
else |
6 |
|
|
ASCENDLIBRARY=@DEFAULT_ASCENDLIBRARY@ |
7 |
johnpye |
440 |
fi |
8 |
|
|
|
9 |
|
|
args=$@ |
10 |
|
|
|
11 |
|
|
if [ "$OSTYPE" = "cygwin" ]; then |
12 |
|
|
echo "CYGWIN..." |
13 |
|
|
elif [ "$OSTYPE" = "msys" ]; then |
14 |
|
|
#echo "MSYS..." |
15 |
|
|
PYTHON=/c/Python24/python |
16 |
|
|
fi |
17 |
|
|
|
18 |
|
|
if [ $PYTHON ]; then |
19 |
|
|
python=$PYTHON |
20 |
|
|
else |
21 |
|
|
python=python |
22 |
|
|
fi |
23 |
|
|
|
24 |
|
|
|
25 |
johnpye |
508 |
if [ $ASC_GDB ]; then |
26 |
|
|
echo "RUNNING THROUGH DEBUGGER" |
27 |
johnpye |
532 |
bin="gdb --symbols=../@ASC_SHLIBPREFIX@ascend@ASC_SHLIBSUFFIX@ --args $python" |
28 |
johnpye |
440 |
else |
29 |
|
|
bin=$python |
30 |
|
|
fi |
31 |
|
|
|
32 |
johnpye |
508 |
if [ `which ascend` ]; then |
33 |
|
|
echo `which ascend` "?" |
34 |
|
|
else |
35 |
|
|
ASC_DEV=1 |
36 |
|
|
fi |
37 |
|
|
|
38 |
|
|
if [ "x$ASC_DEV" != "x" ]; then |
39 |
johnpye |
440 |
# set the 'ASC_DEVELOPING' environment variable |
40 |
|
|
# if you don't want to run ASCEND from the installed location |
41 |
johnpye |
628 |
echo "NOTE! RUNNING ASC_DEV (LOCAL) MODE..." |
42 |
johnpye |
532 |
export LD_LIBRARY_PATH=.. |
43 |
|
|
cmd="$bin gtkbrowser.py --pygtk-assets=glade/ --library=../models $args" |
44 |
johnpye |
482 |
echo "Launching... $cmd" |
45 |
johnpye |
440 |
else |
46 |
johnpye |
628 |
cmd="$bin @INSTALL_ASCDATA@/gtkbrowser.py $args" |
47 |
johnpye |
440 |
fi |
48 |
|
|
|
49 |
|
|
$cmd |
50 |
|
|
|