/[ascend]/trunk/pygtk/interface/ascend.in
ViewVC logotype

Contents of /trunk/pygtk/interface/ascend.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 507 - (show annotations) (download)
Wed Apr 19 02:44:25 2006 UTC (13 years, 10 months ago) by johnpye
File size: 805 byte(s)
Fixing for ubuntu GCC 4
1 #!/bin/sh
2
3 if [ "x$ASCENDLIBRARY" != "x" ]; then
4 echo "USING ASCENDLIBRARY=$ASCENDLIBRARY"
5 else
6 ASCENDLIBRARY=@DEFAULT_ASCENDLIBRARY@
7 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 if [ $ASCEND_GDB ]; then
26 bin="gdb --args $python"
27 else
28 bin=$python
29 fi
30
31 if [ "x$ASC_DEVELOPING" != "x" ]; then
32 # set the 'ASC_DEVELOPING' environment variable
33 # if you don't want to run ASCEND from the installed location
34 echo "RUNNING DEVELOPING MODE..."
35 cmd="$bin gtkbrowser.py --pygtk-assets=glade/ --library=../../models $args"
36 echo "Launching... $cmd"
37 else
38 cmd="$bin @INSTALL_DATA@/ascend/gtkbrowser.py $args"
39 fi
40
41 $cmd

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22