Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.124 1998/02/10 13:03:36 peterg +## Now includes controller transfer function (ctf). +## ## Revision 1.123 1998/02/09 13:51:04 peterg ## Fixed directory string bug. ## ## Revision 1.122 1998/02/06 15:02:26 peterg ## New default sspar -- sets all states to zero. @@ -644,11 +647,11 @@ fi if [ "$2" = "rep" ]; then documenttype=article # See if we are making a book -- ie representation rep on a directory - isMTT_work=`pwd | grep 'MTT_work` + isMTT_work=`pwd | grep 'MTT_work'` if [ -n "$isMTT_work" ]; then dotdot='../' fi isdirectory=`file $dotdot$1 | awk '{print $2}' | grep directory` @@ -759,10 +762,50 @@ find $path_name -name "$2.cr" -exec cp {} . \; fi exit fi + +# Version control +VC='' + +if [ "$3" = "vc" ]; then + tidy=untidy; + case $2 in + abg ) + VC='ok' + VCext='fig' ;; + lbl ) + VC='ok' + VCext='txt' ;; + desc ) + VC='ok' + VCext='tex' ;; + simp ) + VC='ok' + VCext='r' ;; + rep ) + VC='ok' + VCext='txt' ;; + numpar ) + VC='ok' + VCext='txt' ;; + input ) + VC='ok' + VCext='txt' ;; + odes ) + VC='ok' + VCext='h' ;; + sspar ) + VC='ok' + VCext='r' ;; + *) + echo Version control is not appropriate for representation $2 + exit ;; + esac +fi + # Tidy mode - operate in the directory MTT-work if [ "$tidy" = "tidy" ]; then mkdir -p MTT_work cp -u *_*.* MTT_work 2>/dev/null cd MTT_work @@ -775,11 +818,11 @@ mtt -u -q $mtt_switches -S "$Directory" $1 $2 $3 $4 if [ "$3" != "view" ]; then echo Copying " " $1_$2.$3 - cp -f $1_$2.$3 .. + cp -u $1_$2.$3 .. fi # Remove the MTT_work directory if very tidy if [ "$verytidy" = "verytidy" ]; then echo Removing all working files @@ -851,42 +894,10 @@ nifr) REPTYPE='data' ;; *) REPTYPE='tex' ;; esac - - -# Version control -VC='' - -if [ "$3" = "vc" ]; then - case $2 in - abg ) - VC='ok' - VCext='fig' ;; - lbl ) - VC='ok' - VCext='txt' ;; - simp ) - VC='ok' - VCext='r' ;; - numpar ) - VC='ok' - VCext='txt' ;; - input ) - VC='ok' - VCext='txt' ;; - sspar ) - VC='ok' - VCext='r' ;; - *) - echo Version control is not appropriate for representation $2 - exit ;; - esac -fi - - ################################ # This is the main mtt programme