Mercurial > hg > octave-terminal
changeset 3058:2688b68dd9c1
[project @ 1997-06-20 19:27:36 by jwe]
author | jwe |
---|---|
date | Fri, 20 Jun 1997 19:27:36 +0000 |
parents | a35711deb8a5 |
children | f2a34a28d9c5 |
files | mkoctfile.in |
diffstat | 1 files changed, 21 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mkoctfile.in +++ b/mkoctfile.in @@ -46,7 +46,7 @@ octfile= ldflags= dbg=: -strip= +strip=false if [ $# -eq 0 ]; then echo $usage_msg @@ -72,7 +72,7 @@ file=$1 objfiles="$objfiles $file" ;; - -d | --debug) + -d | --debug | -v | --verbose) dbg=echo ;; -h | -? | --help) @@ -82,9 +82,10 @@ Options: -h, -? --help Print this message. - -v, --verbose Echo commands as they are executed. + -lLIB Add library LIB to link command. -o FILE, --output FILE Output file name. Default extension is .oct. - -lLIB Add library LIB to link command. + -s, --strip Strip output file. + -v, --verbose Echo commands as they are executed. FILE Compile or link FILE. Recognized file types are: @@ -99,6 +100,11 @@ EOF exit 0 ;; + -l*) + ldflags="$ldflags $1";; + "") + break + ;; -o | --output) shift if [ $# -gt 0 ]; then @@ -107,10 +113,8 @@ echo "mkoctfile: output file name missing" fi ;; - -*) - ldflags="$ldflags $1";; - "") - break + -s | --strip) + strip=true ;; *) echo "mkoctfile: unrecognized argument $1" @@ -179,3 +183,12 @@ $dbg $SH_LD $SH_LDFLAGS -o $octfile $objfiles eval $SH_LD $SH_LDFLAGS -o $octfile $objfiles + +# Maybe strip it. + +if $strip; then + $dbg strip $octfile + eval strip $octfile +fi + +exit 0