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:
parent
82ca799470
commit
7294d4678a
1 changed files with 5 additions and 3 deletions
|
@ -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 ###
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue