Overview
Comment: | Added -p switch - print enviromment variables |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
1f6491c61656570a65f15396fc007758 |
User & Date: | gawthrop@users.sourceforge.net on 1997-12-04 10:40:26 |
Other Links: | branch diff | manifest | tags |
Context
1997-12-04
| ||
10:41:15 | Added third argument to print env. variables. check-in: ff8c1ba3ea user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:40:26 | Added -p switch - print enviromment variables check-in: 1f6491c616 user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
10:05:02 | Compiler now symbolocic $cc check-in: fc902dde0b user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt from [4946fd3e1c] to [f526f1925e].
︙ | ︙ | |||
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.94 1997/11/20 11:23:16 peterg # Changed gcc to cc # ## Revision 1.93 1997/09/18 16:57:28 peterg ## _sympar.txt now has a second column - the system type from whence the ## parameter (in the first column) came. ## Done on the train Glasgow-Warrington ! | > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | # Copyright (c) P.J.Gawthrop, 1989, 1990, 1991, 1993, 1994, 1995, 1996. ############################################################### ## Version control history ############################################################### ## $Header$ ## $Log$ ## Revision 1.95 1997/12/04 10:05:02 peterg ## Compiler now symbolocic $cc ## # Revision 1.94 1997/11/20 11:23:16 peterg # Changed gcc to cc # ## Revision 1.93 1997/09/18 16:57:28 peterg ## _sympar.txt now has a second column - the system type from whence the ## parameter (in the first column) came. ## Done on the train Glasgow-Warrington ! |
︙ | ︙ | |||
350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | #Look for a command line argument while [ -n "`echo $1 | grep '-'`" ]; do mtt_switches="$mtt_switches $1" case $1 in -q ) quiet=quiet ;; -c ) computation=c ;; -o ) dae_is_ode=1 ;; -s ) switches=1 ;; -l ) level=$2; shift ;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done | > > < > > > > > > > > > > > | 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 | #Look for a command line argument while [ -n "`echo $1 | grep '-'`" ]; do mtt_switches="$mtt_switches $1" case $1 in -q ) quiet=quiet ;; -p ) print='-p';; -c ) computation=c ;; -o ) dae_is_ode=1 ;; -s ) switches=1 ;; -l ) level=$2; shift ;; *) echo "$1 is an invalid argument - ignoring" ;; esac shift done #Print header if not in quiet (-q) mode. if [ "$quiet" != "quiet" ]; then echo echo 'MTT (Model Transformation Tools) version 2.5++ ($Date$)' echo 'This is free software with ABSOLUTELY NO WARRANTY.' echo 'Type `mtt warranty'\' 'for details.' echo fi #Check the principle paths mtt_check_vars $print # Exit if just printing paths if [ "$print" != "" ]; then exit fi if [ -z "$1" ]; then if [ -z "$print" ]; then echo 'Usage: mtt help -- mtt on-line help' echo ' mtt info -- info-based manual' echo ' mtt info topic' echo ' mtt hinfo -- hypertext manual' echo ' mtt manual -- dvi manual' echo ' mtt warranty' echo ' mtt clean' echo ' mtt <system_name> clean' echo ' mtt copy <system_name> <path_name>' echo ' mtt <system_name> <representation> vc' echo ' mtt <system_name> <representation> <language>' echo ' mtt <system_name> <representation> <language> <parameters>' echo 'Options: -q quiet mode' echo ' -p print environment variables' echo ' -c c-code generation' echo ' -o ode and dae are the same' echo ' -s use switch (ISW and CSW) components' exit fi fi if [ "$1" = "info" ] && [ "$3" = "" ]; then echo Invoking info info -f $MTTPATH/doc/mtt.info $2 exit |
︙ | ︙ | |||
652 653 654 655 656 657 658 | VCext='r' ;; *) echo Version control is not appropriate for representation $2 exit ;; esac fi | < < | 667 668 669 670 671 672 673 674 675 676 677 678 679 680 | VCext='r' ;; *) echo Version control is not appropriate for representation $2 exit ;; esac fi # This is the main mtt programme $MAKE -s -f - $1_$2.$3 << EOF # Cancel implicit rules I don't want %.dvi: %.tex |
︙ | ︙ |