Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -12,10 +12,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.102 1997/12/07 12:14:43 peterg +## Hnadles book, article and section reports seperately +## ## Revision 1.101 1997/12/06 18:54:53 peterg ## Now tidies up after itself. ## Major modifications to do a rep on a directory -- creates a book with ## each example as a chapter. ## @@ -716,11 +719,10 @@ fi else documenttype=section fi -echo documenttype $documenttype ################################ # This is the main mtt programme ################################ @@ -1336,20 +1338,21 @@ ifeq ($REPTYPE,bg) $1_$2.ps : $1_$2.fig echo Creating $1_$2.ps multi_command2 'fig2dev -Lps' $1 $2.fig $2.ps | sh endif + ifeq ($REPTYPE,data) #Create PostScript version of dat file # + another version with Args added to the name if its appropriate $1_$2.ps: $1_$2.gdat - gdat2ps $1_$2 '$ARGS';echo $PLOTTYPE; + gdat2ps $1_$2 '$ARGS';echo $REPTYPE $ARGS $PLOTTYPE ifeq ($PLOTTYPE,multiple) -ifdef $ARGS - cp $1_$2.ps $1_$2$_ARGS.ps +ifneq ($ARGS,) + cp $1_$2.ps $1_$2$_ARGS.ps ; echo COPYING endif endif endif