Index: mttroot/mtt/bin/trans/abg2cr_m2txt ================================================================== --- mttroot/mtt/bin/trans/abg2cr_m2txt +++ mttroot/mtt/bin/trans/abg2cr_m2txt @@ -11,11 +11,11 @@ # Copyright (C) 2000 by Peter J. Gawthrop # Inform user -if [ -f "$1_cr.txt" ]; then +if [ "$1_cr.txt" -nt "$1_abg.m" ]; then echo "Using $1_cr.txt" exit else echo "Creating $1_cr.txt" fi Index: mttroot/mtt/bin/trans/cr_txt2r ================================================================== --- mttroot/mtt/bin/trans/cr_txt2r +++ mttroot/mtt/bin/trans/cr_txt2r @@ -14,10 +14,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.13 2002/04/28 18:41:26 geraint +## Fixed [ 549658 ] awk should be gawk. +## Replaced calls to awk with call to gawk. +## ## Revision 1.12 2002/04/08 17:04:21 geraint ## Removed spurious "\n" from output. ## ## Revision 1.11 2000/08/01 07:34:33 peterg ## Replaced printf by echo @@ -75,14 +79,15 @@ # The level of the recursion null at top level; _lower at lower levels. level='' ## Used to be $2 - now set to null. +abgfile=$1_abg.m crfile=$1_cr.r CRFILE=$1_cr.r -if [ -f "$crfile" ]; then +if [ "$crfile" -nt "$abgfile" ]; then echo "Using $crfile" else # Inform user echo "Creating $crfile"