Mercurial > hg > octave-lyh
changeset 6073:934146a33e83
[project @ 2006-10-24 13:52:30 by jwe]
author | jwe |
---|---|
date | Tue, 24 Oct 2006 13:52:31 +0000 |
parents | 4036e6fca790 |
children | 1839d551521b |
files | ChangeLog run-octave.in |
diffstat | 2 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-24 John W. Eaton <jwe@octave.org> + + * run-octave.in: Only modify .gdbinit if -g option is given. + Use $(/bin/pwd) instead of $(pwd). + 2006-10-23 John W. Eaton <jwe@octave.org> * emacs/Makefile.in (SOURCES, DISTFILES, install, install-strip,
--- a/run-octave.in +++ b/run-octave.in @@ -9,14 +9,15 @@ done LOADPATH=$(echo $LOADPATH | sed 's|^:||') IMAGEPATH="$top_srcdir/scripts/image" +echo $LOADPATH args="--path=$LOADPATH --image-path=$IMAGEPATH" -if [ $(pwd) = "$builddir" ]; then - sed "s|^set args.*$|set args $args|" .gdbinit > .gdbinit-tmp - mv .gdbinit-tmp .gdbinit -fi if [ $# -gt 0 ]; then if [ "x$1" = "x-g" ]; then driver="gdb" + if [ $(/bin/pwd) = "$builddir" ]; then + sed "s|^set args.*$|set args $args|" .gdbinit > .gdbinit-tmp + mv .gdbinit-tmp .gdbinit + fi args="" shift elif [ "x$1" = "x-valgrind" ]; then