author | wenzelm |
Thu, 24 Aug 2000 00:53:53 +0200 | |
changeset 9680 | 6581bfc8421e |
parent 9679 | 6dca83af209b |
child 9681 | 8e0b5c9f3428 |
--- a/lib/scripts/getsettings Thu Aug 24 00:53:23 2000 +0200 +++ b/lib/scripts/getsettings Thu Aug 24 00:53:53 2000 +0200 @@ -22,6 +22,21 @@ unset ENV unset BASH_ENV +#support easy settings +function choosefrom () +{ + local RESULT="" + local FILE="" + + for FILE in "$@" + do + [ -z "$RESULT" -a -e "$FILE" ] && RESULT="$FILE" + done + + [ -z "$RESULT" ] && RESULT="$FILE" + echo "$RESULT" +} + #get actual settings . $ISABELLE_HOME/etc/settings || exit 2 ISABELLE_SITE_SETTINGS_PRESENT=true