Overview
Comment:Added missing quotes to conditional expression.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | origin/master | trunk
Files: files | file ages | folders
SHA3-256: 4523befbb6597beac95aa9392544e8dc26593a9fd67ce41087f29b47e4466e3a
User & Date: geraint@users.sourceforge.net on 2005-02-17 22:15:35
Other Links: branch diff | manifest | tags
Context
2005-02-18
14:45:09
typo. check-in: 89c3da4685 user: geraint@users.sourceforge.net tags: origin/master, trunk
2005-02-17
22:15:35
Added missing quotes to conditional expression. check-in: 4523befbb6 user: geraint@users.sourceforge.net tags: origin/master, trunk
18:54:23
Fixed a bash-sim: replaced let with $(( )) check-in: 0883faa9cb user: geraint@users.sourceforge.net tags: origin/master, trunk
Changes

Modified mttroot/mtt/bin/mtt_versions from [1a4f57c0f6] to [a364ee2efb].

10
11
12
13
14
15
16



17
18
19
20
21
22
23
# Copyright (c) P.J.Gawthrop 1998

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



## Revision 1.4  2003/08/06 22:39:40  geraint
## Fixed reporting of non-existent software, no longer says "is OK and has version .".
##
## Revision 1.3  2002/04/28 18:41:26  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##







>
>
>







10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright (c) P.J.Gawthrop 1998

###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.5  2005/02/17 18:36:38  geraint
## Removed a bash-ism: replaced [[ conditional ]] with [ conditional ]
##
## Revision 1.4  2003/08/06 22:39:40  geraint
## Fixed reporting of non-existent software, no longer says "is OK and has version .".
##
## Revision 1.3  2002/04/28 18:41:26  geraint
## Fixed [ 549658 ] awk should be gawk.
## Replaced calls to awk with call to gawk.
##
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
echo Doing the non-GNU components

print_version ()
{
    program=${1:-"Error: unknown program"}
    shift;
    version=$*
    if [ ${version:-""} ]; then
	echo is OK and has version $version.
    else
	echo $program does not exist.
    fi
}

echo Trying xfig ...







|







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
echo Doing the non-GNU components

print_version ()
{
    program=${1:-"Error: unknown program"}
    shift;
    version=$*
    if [ "${version:-""}" ]; then
	echo is OK and has version $version.
    else
	echo $program does not exist.
    fi
}

echo Trying xfig ...


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