Mercurial > hg > octave-jordi
changeset 21035:b432e7bb3cbd
run-octave.in: Allow passing multiple arguments to run-octave. (bug #46690)
author | Lachlan Andrew <lachlanbis@gmail.com> |
---|---|
date | Tue, 05 Jan 2016 13:44:53 +0100 |
parents | c044607a9225 |
children | b4d6e7cd28db |
files | run-octave.in |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/run-octave.in +++ b/run-octave.in @@ -57,7 +57,7 @@ ## Checking for string equality below with prepended x's in order to ## handle problems with empty strings. -if [ $# -gt 0 ]; then +while [ $# -gt 0 ]; do if [ "x$1" = "x-g" ]; then driver="gdb --args" shift @@ -82,8 +82,10 @@ elif [ "x$1" = "x-cli" ]; then octave_executable="$builddir/src/octave-cli" shift + else + break fi -fi +done ## We set OCTAVE_ARCHLIBDIR so that the wrapper program can find the ## octave-gui program in the build tree. That will fail if we ever