diff --git a/externalLinks b/externalLinks index 4be1547..5b23d5b 100755 --- a/externalLinks +++ b/externalLinks @@ -4,8 +4,8 @@ version () { echo '$Author: zimoch $' >&2 - echo '$Date: 2009/08/11 15:57:51 $' >&2 - echo '$Revision: 1.3 $' >&2 + echo '$Date: 2009/09/07 10:01:53 $' >&2 + echo '$Revision: 1.4 $' >&2 echo '$Source: /cvs/G/EPICS/App/scripts/externalLinks,v $' >&2 exit 1 } @@ -31,12 +31,12 @@ shopt -s nullglob shopt -s extglob export LANG=en_US.iso885915 -if [ "${INSTBASE%/*}" = "/psi-xfel" -o "${INSTBASE%/*}" = "/fin" ] -then - EPICS=3.14.8 -else - EPICS=3.13.10 -fi +INSTBASE=${INSTBASE%/} +INSTBASE=${INSTBASE#/import} +case "${INSTBASE}" in + ( /work|/prod|/devl ) EPICS=3.13.10 ;; + ( * ) EPICS=3.14.8 ;; +esac while true do @@ -79,7 +79,7 @@ function expandFile () { CONVERT=dbd/slsConvert.dbd if [ ! -r $CONVERT ] then - CONVERT=$SLSBASE/epics/base/bin/R${EPICS}/slsConvert.dbd + CONVERT=$INSTBASE/epics/base/bin/R${EPICS}/slsConvert.dbd fi if [ -r $CONVERT ] then