comparison run-octave.in @ 7016:93c65f2a5668

[project @ 2007-10-12 06:40:56 by jwe]
author jwe
date Fri, 12 Oct 2007 06:41:26 +0000
parents 8b0cfeb06365
children a1dbe9d80eee
comparison
equal deleted inserted replaced
7015:0a708692d51d 7016:93c65f2a5668
1 #! /bin/sh 1 #! /bin/sh
2 ##
3 ## run-octavee -- run Octave in the build tree.
4 ##
5 ## This file is part of Octave.
6 ##
7 ## Octave is free software; you can redistribute it and/or modify it
8 ## under the terms of the GNU General Public License as published by the
9 ## Free Software Foundation; either version 3 of the License, or (at
10 ## your option) any later version.
11 ##
12 ## Octave is distributed in the hope that it will be useful, but WITHOUT
13 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 ## for more details.
16 ##
17 ## You should have received a copy of the GNU General Public License
18 ## along with Octave; see the file COPYING. If not, see
19 ## <http://www.gnu.org/licenses/>.
2 20
3 AWK=${AWK:-'awk'} 21 AWK=${AWK:-'awk'}
4 22
5 # FIXME -- is there a better way to handle the possibility of spaces 23 # FIXME -- is there a better way to handle the possibility of spaces
6 # in these names? 24 # in these names?
29 47
30 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" 48 LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path"
31 IMAGEPATH="$top_srcdir/scripts/image" 49 IMAGEPATH="$top_srcdir/scripts/image"
32 INFOFILE="$builddir/doc/interperter/octave.info" 50 INFOFILE="$builddir/doc/interperter/octave.info"
33 51
34 args="--no-initial-path --path=\"$LOADPATH\" --image-path=\"$IMAGEPATH\" --info-file=\"$INFOFILE\""
35
36 if [ $# -gt 0 ]; then 52 if [ $# -gt 0 ]; then
37 if [ "x$1" = "x-g" ]; then 53 if [ "x$1" = "x-g" ]; then
38 driver="gdb --args" 54 driver="gdb --args"
39 shift 55 shift
40 elif [ "x$1" = "x-valgrind" ]; then 56 elif [ "x$1" = "x-valgrind" ]; then
47 fi 63 fi
48 64
49 OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \ 65 OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \
50 LD_PRELOAD="$liboctinterp $liboctave $libcruft" \ 66 LD_PRELOAD="$liboctinterp $liboctave $libcruft" \
51 %library_path_var%="$builddir/src:$builddir/liboctave:$builddir/libcruft:$%library_path_var%" \ 67 %library_path_var%="$builddir/src:$builddir/liboctave:$builddir/libcruft:$%library_path_var%" \
52 exec $driver "$builddir/src/octave" $args "$@" 68 exec $driver "$builddir/src/octave" --no-initial-path --path="$LOADPATH" --image-path="$IMAGEPATH" --info-file="$INFOFILE" "$@"
53 69