Overview
Comment: | Fixed reporting of non-existent software, no longer says "is OK and has version .". |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | origin/master | trunk |
Files: | files | file ages | folders |
SHA3-256: |
2ec3d6dbc6412624261004948a8ddafd |
User & Date: | geraint@users.sourceforge.net on 2003-08-06 22:39:40 |
Other Links: | branch diff | manifest | tags |
Context
2003-08-07
| ||
23:26:52 | deb-installed xmtt now reads configuration data before starting (like mtt). check-in: 6a26cc6ef3 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
2003-08-06
| ||
22:39:40 | Fixed reporting of non-existent software, no longer says "is OK and has version .". check-in: 2ec3d6dbc6 user: geraint@users.sourceforge.net tags: origin/master, trunk | |
18:55:21 | Updated for latest MTT version. check-in: 547594dcde user: gawthrop@users.sourceforge.net tags: origin/master, trunk | |
Changes
Modified mttroot/mtt/bin/mtt_versions from [a20bb12cc7] to [f87dfcf062].
︙ | ︙ | |||
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.2 2000/11/13 21:40:26 peterg ## Sorted out the non-gnu ## ## Revision 1.1 1998/05/28 09:24:41 peterg ## Initial revision ## ############################################################### | > > > > | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | # Copyright (c) P.J.Gawthrop 1998 ############################################################### ## Version control history ############################################################### ## $Id$ ## $Log$ ## Revision 1.3 2002/04/28 18:41:26 geraint ## Fixed [ 549658 ] awk should be gawk. ## Replaced calls to awk with call to gawk. ## ## Revision 1.2 2000/11/13 21:40:26 peterg ## Sorted out the non-gnu ## ## Revision 1.1 1998/05/28 09:24:41 peterg ## Initial revision ## ############################################################### |
︙ | ︙ | |||
40 41 42 43 44 45 46 47 48 49 | mtt_version octave mtt_version sed mtt_version tail mtt_version tr ## Non standards echo Doing the non-GNU components echo Trying xfig ... xfig -help 2> mtt_junk; version=`grep Xfig mtt_junk` | > > > > > > > > > > > > | | | | | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | mtt_version octave mtt_version sed mtt_version tail mtt_version tr ## Non standards 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 ... xfig -help 2> mtt_junk; version=`grep Xfig mtt_junk` print_version xfig $version echo Trying fig2dev ... fig2dev -h > mtt_junk; version=`grep -i patchlevel mtt_junk` print_version fig2dev $version echo Trying reduce ... reduce >mtt_junk 2>1 <<EOF bye; EOF version=`grep REDUCE mtt_junk` print_version reduce $version |