getenv: get value from Isabelle settings.
authorwenzelm
Mon Dec 02 18:19:50 1996 +0100 (1996-12-02)
changeset 22963b1086cf2f4d
parent 2295 bae5683c2891
child 2297 efcabc6df91a
getenv: get value from Isabelle settings.
lib/Tools/getenv
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lib/Tools/getenv	Mon Dec 02 18:19:50 1996 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +#!/bin/bash
     1.5 +#
     1.6 +# DESCRIPTION: get value from Isabelle settings
     1.7 +#
     1.8 +
     1.9 +PRG=$(basename $0)
    1.10 +
    1.11 +function usage()
    1.12 +{
    1.13 +  echo
    1.14 +  echo "Usage: $PRG VARNAME"
    1.15 +  echo
    1.16 +  echo "  Get value of VARNAME from the Isabelle settings."
    1.17 +  echo
    1.18 +  exit 1
    1.19 +}
    1.20 +
    1.21 +
    1.22 +## main
    1.23 +
    1.24 +[ $# -ne 1 ] && usage
    1.25 +
    1.26 +eval "echo \$$1"