Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.119 1998/02/05 15:04:25 peterg +## Fixed problem with book in tidy mode. +## ## Revision 1.118 1998/02/05 12:00:11 peterg ## Tidy mode now default. ## It seems to work ok but not for book type documents. ## ## Revision 1.117 1998/02/04 16:50:50 peterg @@ -632,11 +635,10 @@ # See if we are making a book -- ie representation rep on a directory isMTT_work=`pwd | grep 'MTT_work` if [ -n "$isMTT_work" ]; then dotdot='../' fi -echo $dotdot$1 isdirectory=`file $dotdot$1 | awk '{print $2}' | grep directory` if [ -n "$isdirectory" ]; then documenttype=book fi @@ -747,11 +749,11 @@ fi # Tidy mode - operate in the directory MTT-work if [ "$tidy" = "tidy" ]; then mkdir -p MTT_work - cp -u -f *_*.* MTT_work + cp -u *_*.* MTT_work 2>/dev/null cd MTT_work Directory=$directory/MTT_work mtt -u -q $mtt_switches -S $Directory $1 $2 $3 $4 if [ "$3" != "view" ]; then cp -f $1_$2.$3 ..