Overview
Comment: | Hnadles book, article and section reports seperately |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1728c47ac49f609c21cd009f4bde7d2c |
User & Date: | gawthrop@users.sourceforge.net on 1997-12-07 12:14:43 |
Other Links: | branch diff | manifest | tags |
Context
1997-12-07
| ||
18:45:44 | Set to monochrome (not colour). This gives clearer plots. check-in: 455803c9a5 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
12:14:43 | Hnadles book, article and section reports seperately check-in: 1728c47ac4 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
11:56:24 | Removed extraneous chars for the file check-in: ad6dff0564 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [2097285bae] to [09096b479e].
︙ | ︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.100 1997/12/06 12:14:39 peterg ## Put a conditional around the PS data rep to check for set arguments. ## ## Revision 1.99 1997/12/04 22:06:53 peterg ## Added view arguments for graph plotting ## ## Revision 1.98 1997/12/04 10:58:15 peterg | > > > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## 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. ## ## Revision 1.100 1997/12/06 12:14:39 peterg ## Put a conditional around the PS data rep to check for set arguments. ## ## Revision 1.99 1997/12/04 22:06:53 peterg ## Added view arguments for graph plotting ## ## Revision 1.98 1997/12/04 10:58:15 peterg |
︙ | ︙ | |||
623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 | DIFF=`diff -bq $1_args.m $1_args.new 2>/dev/null` if [ -n "$DIFF" ]; then mv $1_args.new $1_args.m fi # Classify the representation - needed for conversion route to postscript case $2 in abg ) REPTYPE='bg' ;; sabg ) REPTYPE='bg' ;; cbg ) REPTYPE='bg' ;; odes) | > | | | | | | | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 | DIFF=`diff -bq $1_args.m $1_args.new 2>/dev/null` if [ -n "$DIFF" ]; then mv $1_args.new $1_args.m fi # Classify the representation - needed for conversion route to postscript PLOTTYPE='single'; case $2 in abg ) REPTYPE='bg' ;; sabg ) REPTYPE='bg' ;; cbg ) REPTYPE='bg' ;; odes) REPTYPE='data'; PLOTTYPE='multiple' ;; odeso) REPTYPE='data'; PLOTTYPE='multiple' ;; sms) REPTYPE='data'; PLOTTYPE='multiple' ;; smso) REPTYPE='data'; PLOTTYPE='multiple' ;; odess) REPTYPE='data' ;; odesso) REPTYPE='data' ;; daes) REPTYPE='data'; PLOTTYPE='multiple' ;; daeso) REPTYPE='data'; PLOTTYPE='multiple' ;; ir) REPTYPE='data' ;; iro) REPTYPE='data' ;; sr) REPTYPE='data' ;; sro) |
︙ | ︙ | |||
696 697 698 699 700 701 702 | VCext='r' ;; *) echo Version control is not appropriate for representation $2 exit ;; esac fi | | > > | | | > > > > | 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 | VCext='r' ;; *) echo Version control is not appropriate for representation $2 exit ;; esac fi if [ "$2" = "rep" ]; then documenttype=article # See if we are making a book -- ie representation rep on a directory isdirectory=`file $1 | awk '{print $2}' | grep directory` if [ -n "$isdirectory" ]; then documenttype=book fi else documenttype=section fi echo documenttype $documenttype ################################ # This is the main mtt programme ################################ $MAKE -s -f - $1_$2.$3 << EOF |
︙ | ︙ | |||
915 916 917 918 919 920 921 | )> $1_sspar.r #SUMMARY rep report (txt) #SUMMARY rep report (tex) #SUMMARY rep report (view) | | | 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 | )> $1_sspar.r #SUMMARY rep report (txt) #SUMMARY rep report (tex) #SUMMARY rep report (view) ifeq ($documenttype,book) $1_rep.txt: dir2rep $1; else $1_rep.txt: echo Creating $1_rep.txt; ( \ echo "# Outline report file for system $1 ($1_rep.txt)"; \ |
︙ | ︙ | |||
1308 1309 1310 1311 1312 1313 1314 | dat2gdat $1 $2 $4 #Generic conversion of Latex to latex document mtt.sty: echo Copying mtt.sty to here cp $MTTPATH/trans/mtt.sty . $1_$2.doc: $1_$2.tex | | | | < < | | > > > | < < < | 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 | dat2gdat $1 $2 $4 #Generic conversion of Latex to latex document mtt.sty: echo Copying mtt.sty to here cp $MTTPATH/trans/mtt.sty . $1_$2.doc: $1_$2.tex makedoc "$mtt_switches" "$1" "$2" "$3" "$4" "$documenttype" #Generic conversion of LaTeX doc to dvi $1_$2.dvi: $1_$2.doc echo Creating $1_$2.dvi latex $1_$2.doc > /dev/null; latex $1_$2.doc > /dev/null; #Create PostScript version of fig files 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; ifeq ($PLOTTYPE,multiple) ifdef $ARGS cp $1_$2.ps $1_$2$_ARGS.ps endif endif endif ifeq ($REPTYPE,tex) #Create PostScript version of dvi file $1_$2.ps: $1_$2.dvi |
︙ | ︙ | |||
1400 1401 1402 1403 1404 1405 1406 | $1_rep.make: $1_rep.txt $1_args.m rep_txt2make $1 "$mtt_switches" make_reps: rep_txt2sh $1; touch $1_rep.txt $1_rep.tex: $1_rep.txt make_reps | | | 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 | $1_rep.make: $1_rep.txt $1_args.m rep_txt2make $1 "$mtt_switches" make_reps: rep_txt2sh $1; touch $1_rep.txt $1_rep.tex: $1_rep.txt make_reps rep_txt2tex $1 "$documenttype" "$directory"; #SUMMARY abg Acausal bond graph report (tex) $1_abg.tex: $1_sub.sh abg2tex $1 # Version control system - uses RCS RCS: |
︙ | ︙ | |||
1432 1433 1434 1435 1436 1437 1438 | EOF # Tidy up. # echo Removing log files and other garbage rm -f *_unique_raw_list *_raw_list rm -f mtt_error.txt mtt_info.txt a.out rm -f *.log mtt_info.txt warning.txt | | | 1442 1443 1444 1445 1446 1447 1448 1449 | EOF # Tidy up. # echo Removing log files and other garbage rm -f *_unique_raw_list *_raw_list rm -f mtt_error.txt mtt_info.txt a.out rm -f *.log mtt_info.txt warning.txt rm -f *_*.idx *_*.ind *_*.ilg *_*.aux *_*.lof *_*.toc |