Index: mttroot/mtt/bin/trans/cr_txt2r ================================================================== --- mttroot/mtt/bin/trans/cr_txt2r +++ mttroot/mtt/bin/trans/cr_txt2r @@ -14,10 +14,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.9 2000/02/16 15:58:17 peterg +## Set level='' not $2 +## ## Revision 1.8 1998/11/20 09:48:31 peterg ## Remove the _lower stuff -- see idf this works now. ## ## Revision 1.7 1998/04/14 17:46:28 peterg ## To avoid clashes when creating for more thsan one top level file, adds @@ -85,11 +88,11 @@ sh $1_sub.sh 'echo ' "_cr.r" |\ awk '{ print "in \"" $1 "\";" }' >> $crfile - if [ -z "$level" ]; then +## if [ -z "$level" ]; then # Copy .cr files awk '{ if (NF>0) { print "mtt -q -u crcopy " $1; @@ -105,19 +108,19 @@ ## list of the crs crs=`cat $1_cr.txt` for cr in $crs; do crf=$cr'_cr.r' - if [ -e "$crf" ]; then + if [ -f "$crf" ]; then printf "\045 (%s exists)\n" $crf >> $crfile else printf 'in "%s.cr";\n' $cr >> $crfile fi done - fi +## fi echo 'END;' >> $crfile fi # Now invoke the standard error handling. #mtt_error mtt_error.txt