travis: fix build.sh (set EPICS_BASE correctly) for BASE=SELF

This commit is contained in:
Ralph Lange committed 2020-04-24 19:16:12 +02:00
1 parent 48b15417a6
commit 4413c7d75e
1 file changed
+6 -1
+6 -1
View File
@@ -6,7 +6,12 @@ set -e
CACHEDIR=${CACHEDIR:-${HOME}/.cache}
eval $(grep "EPICS_BASE=" ${CACHEDIR}/RELEASE.local)
if [ "$BASE" = "SELF" ]
then
EPICS_BASE=$CURDIR
else
eval $(grep "EPICS_BASE=" ${CACHEDIR}/RELEASE.local)
fi
export EPICS_BASE
[ -z "$EPICS_HOST_ARCH" -a -f $EPICS_BASE/src/tools/EpicsHostArch.pl ] && EPICS_HOST_ARCH=$(perl $EPICS_BASE/src/tools/EpicsHostArch.pl)