Mercurial > hg > octave-lyh
changeset 9954:de6b6173c990
mkoctfile.in: accept long options with single -
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 10 Dec 2009 01:21:21 -0500 |
parents | 225bfa546ae7 |
children | 33537a4d223f |
files | ChangeLog mkoctfile.in |
diffstat | 2 files changed, 14 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-10 John W. Eaton <jwe@octave.org> + + * mkoctfile.in: Accept long options with single -. + 2009-12-09 John W. Eaton <jwe@octave.org> * HACKING: Clarify gnulib checkout and use.
--- a/mkoctfile.in +++ b/mkoctfile.in @@ -150,7 +150,7 @@ if [ $# -eq 1 ]; then case "$1" in - -v | --version) + -v | -version | --version) echo $version_msg 1>&2 exit 0 ;; @@ -180,10 +180,10 @@ file=$1 libfiles="$libfiles $file" ;; - -d | --debug | -v | --verbose) + -d | -debug | --debug | -v | -verbose | --verbose) dbg=echo ;; - -h | -\? | --help) + -h | -\? | -help | --help) echo $usage_msg 1>&2 cat << EOF @@ -283,11 +283,11 @@ -[lLR]* | -Wl,*) ldflags="$ldflags $1" ;; - -M | --depend) + -M | -depend | --depend) depend=true compile=false ;; - -o | --output) + -o | -ouput | --output) shift if [ $# -gt 0 ]; then outputfile="$1" @@ -295,7 +295,7 @@ echo "mkoctfile: output file name missing" 1>&2 fi ;; - -p | --print) + -p | -print | --print) shift if [ $# -gt 0 ]; then eval echo \${$1} @@ -305,14 +305,14 @@ exit 1 fi ;; - -s | --strip) + -s | -strip | --strip) if $no_oct_file_strip_on_this_platform; then echo "mkoctfile: stripping disabled on this platform" 1>&2 else strip=true fi ;; - -c | --compile) + -c | -compile | --compile) link=false ;; -g) @@ -320,10 +320,10 @@ ALL_CXXFLAGS="$ALL_CXXFLAGS -g" ALL_FFLAGS="$ALL_FFLAGS -g" ;; - --link-stand-alone) + -link-stand-alone | --link-stand-alone) link_stand_alone=true ;; - --mex) + -mex | --mex) incflags="$incflags -I." output_ext=".mex" ;;