Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.90 1997/08/30 19:35:39 peterg +## Added date to mtt line +## ## Revision 1.89 1997/08/26 15:20:25 peterg ## Added explicit evaluation of report representations ## Version now 2.5++ ## ## Revision 1.88 1997/08/25 07:51:47 peterg @@ -487,24 +490,43 @@ echo Editing $1_$2.$3 ($FIG $1_$2.$3; cp $1_abg.fig $1_$1_abg.fig) & exit fi -# Copy systems from the library +# Copy systems from the example library if [ "$1" = "copy" ]; then + # check that its not here already + file_exists=`ls $2 2> /dev/null` + if [ -n "$file_exists" ]; then + if [ "$quiet" != "quiet" ]; then + echo Directory $2 exists already - no action taken + fi + else + path_name=$3 + if [ -z "$path_name" ]; then + path_name=$MTTPATH/lib/examples + fi + echo Copying system $2 to here from $path_name into directory $2 + find $path_name -name "$2" -exec cp -r {} . \; + fi + exit +fi + +# Copy components from the library +if [ "$1" = "compcopy" ]; then # check that its not here already file_exists=`ls $2_abg.fig 2> /dev/null` if [ -n "$file_exists" ]; then if [ "$quiet" != "quiet" ]; then echo $2_abg.fig exists already - no action taken fi else path_name=$3 if [ -z "$path_name" ]; then - path_name=$MTTPATH/lib/examples + path_name=$MTTPATH/lib/comp/compound fi - echo Copying system $2 to here from $3 + echo Copying component $2 from $path_name find $path_name -name "$2_*.*" -exec cp {} . \; fi exit fi @@ -628,11 +650,11 @@ %.dvi: %.tex # If level>0, try and get subsystem files ifneq ("$level","0") $1_abg.fig: - mtt -q copy $1 $MTTPATH/lib/comp/compound + mtt -q compcopy $1 endif # Create an arg file if it doesn't exist $1_args.m: