Index: mttroot/mtt/bin/mtt ================================================================== --- mttroot/mtt/bin/mtt +++ mttroot/mtt/bin/mtt @@ -13,10 +13,13 @@ ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ +## Revision 1.251 2000/08/04 10:54:33 peterg +## Rationalised call to gcc using -lp2c to access p2c lib. +## ## Revision 1.250 2000/08/01 19:29:27 peterg ## Explcit zero of input in the simulations ## ## Revision 1.249 2000/08/01 12:28:02 peterg ## VERSION 4.4 @@ -1015,11 +1018,11 @@ echo 'Usage: mtt help -- mtt on-line help' echo ' mtt find component -- find location of a compound component' echo ' mtt info -- info-based manual' echo ' mtt info topic' echo ' mtt hinfo -- hypertext manual' - echo ' mtt manual -- ps manual' + echo ' mtt manual -- pdf manual' echo ' mtt warranty' echo ' mtt clean -- cleans up intermediate files' echo ' mtt rclean -- recursively cleans up intermediate files' echo ' mtt Clean -- cleans up all generated files' echo ' mtt clean' @@ -1075,14 +1078,14 @@ (cd $MTTPATH/doc; $HTMLVIEW ./mtt.html)& exit fi if [ "$1" = "manual" ] && [$2 = ""]; then - mtt_check_var "$PSVIEW" PSVIEW - (cd $MTTPATH/doc/; make --silent mtt.ps.gz) - echo Invoking $PSVIEW - $PSVIEW $MTTPATH/doc/mtt.ps.gz & + mtt_check_var "$PDFVIEW" PDFVIEW + (cd $MTTPATH/doc/; make --silent mtt.pdf) + echo Invoking $PDFVIEW + $PDFVIEW $MTTPATH/doc/mtt.pdf & exit fi if [ $1 = "find" ]&& [$3 = ""]; then mtt_find $MTT_COMPONENTS $2 @@ -1198,12 +1201,12 @@ isMTT_work=`pwd | grep 'MTT_work'` if [ -n "$isMTT_work" ]; then dotdot='../' fi - isdirectory=`file $dotdot$1 | awk '{print $2}' | grep directory` - if [ -n "$isdirectory" ]; then + #isdirectory=`file $dotdot$1 | awk '{print $2}' | grep directory` + if [ -d "$dotdot$1" ]; then documenttype=book fi else documenttype=section fi