- needed for same setup files to work on Windows (where PowerShell is used instead of bash) - removes ugly bashism to allow overriding from .travis.yml - adds a proper (yet small) syntax Also adds tests for the new syntax and updates the README.
23 lines
567 B
Bash
Executable File
23 lines
567 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
# Set VV in .travis.yml to make scripts verbose
|
|
[ "$VV" ] && set -x
|
|
|
|
CACHEDIR="$HOME/.cache"
|
|
|
|
eval $(grep "EPICS_BASE=" ${CACHEDIR}/RELEASE.local)
|
|
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)
|
|
[ -z "$EPICS_HOST_ARCH" -a -f $EPICS_BASE/startup/EpicsHostArch.pl ] && EPICS_HOST_ARCH=$(perl $EPICS_BASE/startup/EpicsHostArch.pl)
|
|
export EPICS_HOST_ARCH
|
|
|
|
make -j2 $EXTRA
|
|
|
|
if [ "$TEST" != "NO" ]
|
|
then
|
|
make tapfiles
|
|
make -s test-results
|
|
fi
|