Mercurial > octave-nkf
diff run-octave.in @ 6365:ccdb8ffbb994
[project @ 2007-02-27 19:43:35 by jwe]
author | jwe |
---|---|
date | Tue, 27 Feb 2007 19:43:36 +0000 |
parents | 033b9fd8012a |
children | e3a7611430a8 |
line wrap: on
line diff
--- a/run-octave.in Tue Feb 27 15:18:35 2007 +0000 +++ b/run-octave.in Tue Feb 27 19:43:36 2007 +0000 @@ -30,14 +30,13 @@ LOADPATH="$d1_path:$d2_path:$d3_path:$d4_path" IMAGEPATH="$top_srcdir/scripts/image" -args="--path=$LOADPATH --image-path=$IMAGEPATH" -qargs="--path=\"$LOADPATH\" --image-path=\"$IMAGEPATH\"" +args="--no-initial-path --path=\"$LOADPATH\" --image-path=\"$IMAGEPATH\"" if [ $# -gt 0 ]; then if [ "x$1" = "x-g" ]; then driver="gdb" if [ $(/bin/pwd) = "$builddir" ]; then - sed "s|^set args.*$|set args $qargs|" .gdbinit > .gdbinit-tmp + sed "s|^set args.*$|set args $args|" .gdbinit > .gdbinit-tmp mv .gdbinit-tmp .gdbinit fi args="" @@ -55,7 +54,7 @@ OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \ LD_PRELOAD="$liboctinterp $liboctave $libcruft" \ %library_path_var%="$builddir/src:$builddir/liboctave:$builddir/libcruft:$%library_path_var%" \ - exec $driver "$builddir/src/octave" "$args" "$@" + exec $driver "$builddir/src/octave" --no-initial-path --path="$LOADPATH" --image-path="$IMAGEPATH" "$@" else OCTAVE_SITE_INITFILE="$top_srcdir/scripts/startup/main-rcfile" \ LD_PRELOAD="$liboctinterp $liboctave $libcruft" \