Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,14 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +# Revision 1.63 1997/03/22 17:09:11 peterg +# Fixed bug in recursive cr.txt generation. +# Fixed bug in recursive sympar.txt generation. +# # Revision 1.62 1997/03/20 17:48:50 peterg # Better _input.c file default. # # Revision 1.61 1997/03/20 16:53:01 peterg # Generates c files using include statements. @@ -372,10 +376,29 @@ echo Copying system $2 to here find $path_name -name "$2_*.*" -exec cp {} . \; fi exit fi + +# Copy CRs from the library +if [ "$1" = "crcopy" ]; then + # check that its not here already + file_exists=`ls $2.cr 2> /dev/null` + if [ -n "$file_exists" ]; then + if [ "$quiet" != "quiet" ]; then + echo $2.cr exists already - no action taken + fi + else + path_name=$3 + if [ -z "$path_name" ]; then + path_name=$MTTPATH/lib/cr/r + fi + echo Copying CR $2 to here + find $path_name -name "$2.cr" -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