1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 20:42:21 +02:00

Fix build script

Use absolute path rather than erroneously using relative path.
This commit is contained in:
Bradan J. Wolbeck (CompaqDisc) 2020-04-29 21:38:57 -06:00
parent 82ca799470
commit 7294d4678a

View file

@ -2,7 +2,9 @@
echo Starting build.sh
PATH=/usr/local/bin:$PATH:$HOME/bin
cd "$(dirname "$0")"
SCRIPT="$(realpath "$0")"
SCRIPTPATH="$(dirname "$SCRIPT")"
cd $SCRIPTPATH
# exit when any command fails
set -e
@ -14,14 +16,14 @@ if [ ! -f ../BeefySysLib/third_party/libffi/Makefile ]; then
cd ../BeefySysLib/third_party/libffi
./configure
make
cd "$(dirname "$0")"
cd $SCRIPTPATH
fi
if [ ! -d ../extern/llvm_linux_8_0_0 ]; then
echo Building LLVM...
cd ../extern
./llvm_build.sh
cd "$(dirname "$0")"
cd $SCRIPTPATH
fi
### LIBS ###