Index: mttroot/mtt/bin/trans/mtt_update ================================================================== --- mttroot/mtt/bin/trans/mtt_update +++ mttroot/mtt/bin/trans/mtt_update @@ -11,10 +11,13 @@ ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ +## Revision 1.7 2000/10/13 08:56:51 peterg +## Output variables as column, not row. +## ## Revision 1.6 2000/10/13 08:07:24 peterg ## Added state and input - it checks against sympar as well so that ## defined variables may be used here. ## ## Revision 1.5 2000/10/12 19:24:55 peterg @@ -63,11 +66,11 @@ moreinfofile=mtt_list_numpar.$ext grep "$rep" <$1_struc.txt |\ awk '{printf("%s_%s_%s\n", $4, $5, $3)}' \ > $infofile cat $infofile $1_sympar.$ext> $moreinfofile - default='1.0' + default='0.0' ;; *) echo Representation $rep not implemented exit esac @@ -138,11 +141,13 @@ read answer < /dev/tty case $answer in y) answered=yes for old in $in_text; do - sed "s/\($old[ \t]*=\)/## Removed by MTT on `date`: \1/" <$textfile > mtt_tmp + echo $old + sed "s/\(.*$old.*=\)/## Removed by MTT on `date`: \1/"\ + <$textfile > mtt_tmp mv mtt_tmp $textfile changed=yes done ;; n)