Index: mttroot/mtt/bin/trans/abg2cbg_m ================================================================== --- mttroot/mtt/bin/trans/abg2cbg_m +++ mttroot/mtt/bin/trans/abg2cbg_m @@ -11,10 +11,14 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.16 2001/07/26 04:07:28 gawthrop +## Changed a to w on open (Geraint's suggestion) +## Explictly close files +## ## Revision 1.15 2001/07/23 23:24:02 gawthrop ## Now only writes to type.sh and cbg.m when causality is complete ## ## Revision 1.14 2000/12/28 12:16:13 peterg ## *** empty log message *** @@ -168,11 +172,12 @@ fclose(errorfilenum); fclose(typefilenum); EOF - +cat $typefile | sort -u > ${typefile}.tmp +mv ${typefile}.tmp $typefile if [ "$info" = "info" ]; then cat $infofile fi