From: Paul K. <pki...@us...> - 2004-09-09 11:48:54
|
Update of /cvsroot/octave/octave-forge/extra/mex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27146/extra/mex Modified Files: mex.in Log Message: [for Dan McMahill] remove bashisms Index: mex.in =================================================================== RCS file: /cvsroot/octave/octave-forge/extra/mex/mex.in,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- mex.in 19 Apr 2004 14:47:39 -0000 1.11 +++ mex.in 9 Sep 2004 11:48:44 -0000 1.12 @@ -26,7 +26,7 @@ set -x @MKOCTFILE@ -I@LIBPATH@ $* exit -elif grep -iq mexfunction $first ; then +elif grep -i mexfunction $first >/dev/null ; then echo building $first else echo $first does not contain mexfunction @@ -34,9 +34,12 @@ fi # default the name of the octave function from the first filename -name=${first%%.*} -ext=${first#*.} -#echo $name . $ext +first=`basename $first` +#echo "first= $first" +ext=`echo $first | sed 's;.*\.;.;g'` +#echo "ext= $ext" +name=`basename $first $ext` +#echo "name=$name ext=$ext" case "$ext" in f*|F*) |