Overview
Comment:Added third argument to print env. variables.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: ff8c1ba3eaddb329d0de3058ec057d8ad35814cd1e0521461a697bd7366b590e
User & Date: gawthrop@users.sourceforge.net on 1997-12-04 10:41:15
Other Links: branch diff | manifest | tags
Context
1997-12-04
10:41:49
Added -p argument to print environment variables check-in: 467836a7ef user: gawthrop@users.sourceforge.net tags: origin/master, trunk
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
Changes

Modified mttroot/mtt/bin/mtt_check_var from [45069e20bd] to [05224a0c69].

11
12
13
14
15
16
17



18
19
20
21

22
23
24
25

26
27
28





###############################################################
## Version control history
###############################################################
## $Id$
## $Log$



###############################################################

var=$1
name=$2


if [ -z "$1"  ]; then
 echo '***** Shell variable' $name 'not set. *****'
 echo 'Check that mttrc or mttrc.csh has been invoked.'

 exit
fi











>
>
>




>


|

>



>
>
>
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36


###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1  1997/07/27 13:11:37  peterg
## Initial revision
##
###############################################################

var=$1
name=$2
print=$3

if [ -z "$1"  ]; then
 echo '***** Environment variable' $name 'not set. *****'
 echo 'Check that mttrc or mttrc.csh has been invoked.'
 echo
 exit
fi

if [ "$print" = "print" ]; then
 echo Environment variable $name set to $var
fi


MTT: Model Transformation Tools
GitHub | SourceHut | Sourceforge | Fossil RSS ]