123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #! /bin/sh
- ######################################
- ##### Model Transformation Tools #####
- ######################################
- # Bourne shell script: mtt_version
- # Prints out version of a GNU-style tool
- # P.J.Gawthrop May 1998
- # Copyright (c) P.J.Gawthrop 1998
- ###############################################################
- ## Version control history
- ###############################################################
- ## $Id$
- ## $Log$
- ## Revision 1.3 1999/12/20 02:08:38 peterg
- ## Added second arg option
- ##
- ## Revision 1.2 1998/05/28 09:31:44 peterg
- ## Cosmetic changes
- ##
- ## Revision 1.1 1998/05/28 09:31:13 peterg
- ## Initial revision
- ##
- ###############################################################
- if [ -z "$2" ]; then
- echo Trying $1 ...
- ver=`$1 --version | head -1`
- if [ -n "$ver" ]; then
- echo is OK and has version $ver.
- else
- echo Either $1 does not exist or is not the GNU version.
- fi
- else
- echo $1: $2
- fi
|