xash3d-fwgs/scripts/lib.sh

23 lines
314 B
Bash

die()
{
exit 1
}
die_configure()
{
cat build/config.log
die
}
if [ -n "$TRAVIS_BUILD_DIR" ]; then
BUILDDIR=$TRAVIS_BUILD_DIR
elif [ -n "$GITHUB_WORKSPACE" ]; then
BUILDDIR=$GITHUB_WORKSPACE
fi
if [ -n "$TRAVIS_CPU_ARCH" ]; then
ARCH=$TRAVIS_CPU_ARCH
elif [ -n "$GH_CPU_ARCH" ]; then
ARCH=$GH_CPU_ARCH
fi