Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -4,18 +4,21 @@ ##### Model Transformation Tools ##### ###################################### # Bourne shell script: mtt -# P.J.Gawthrop Oct 1989, Dec 1989, 1990, 1991, Oct 1993, Dec 1993, Jan 1994, Dec 95 +# P.J.Gawthrop Oct 1989, Dec 1989, 1990, 1991, Oct 1993, Dec 1993, Jan 1994, Dec 95, Nov 1996. # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +# Revision 1.42 1996/11/11 17:23:03 peterg +# Added numpar.m requirement to all .m targets +# ## Revision 1.41 1996/11/11 17:18:32 peterg ## VERSION 2.1 ## ## Revision 1.40 1996/11/09 21:17:38 peterg ## Fixed bug with copying at level 0. @@ -167,11 +170,11 @@ echo 'This is free software with ABSOLUTELY NO WARRANTY.' echo 'Type `mtt warranty'\' 'for details.' echo fi -if [ "$1" = "" ]; then +if [ -z "$1" ]; then echo 'Usage: mtt help' echo ' mtt info' echo ' mtt info topic' echo ' mtt manual' echo ' mtt warranty' @@ -272,24 +275,23 @@ if [ "$quiet" != "quiet" ]; then echo $2_abg.fig exists already - no action taken fi else path_name=$3 - if [ "$path_name" = "" ]; then + if [ -z "$path_name" ]; then path_name=$MTTPATH/lib/examples fi echo Copying system $2 to here find $path_name -name "$2_*.*" -exec cp {} . \; fi exit fi - # Save up the argument list in a file; but only if argument has changed ARGS=$4; #DIFF doesn't like empty files - so put a blank if empty -if [ -z $ARGS ]; then +if [ -z "$ARGS" ]; then ARGS=' '; fi cat > $1_args.new <