mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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
|
echo Starting build.sh
|
||||||
|
|
||||||
PATH=/usr/local/bin:$PATH:$HOME/bin
|
PATH=/usr/local/bin:$PATH:$HOME/bin
|
||||||
cd "$(dirname "$0")"
|
SCRIPT="$(realpath "$0")"
|
||||||
|
SCRIPTPATH="$(dirname "$SCRIPT")"
|
||||||
|
cd $SCRIPTPATH
|
||||||
|
|
||||||
# exit when any command fails
|
# exit when any command fails
|
||||||
set -e
|
set -e
|
||||||
|
@ -14,14 +16,14 @@ if [ ! -f ../BeefySysLib/third_party/libffi/Makefile ]; then
|
||||||
cd ../BeefySysLib/third_party/libffi
|
cd ../BeefySysLib/third_party/libffi
|
||||||
./configure
|
./configure
|
||||||
make
|
make
|
||||||
cd "$(dirname "$0")"
|
cd $SCRIPTPATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d ../extern/llvm_linux_8_0_0 ]; then
|
if [ ! -d ../extern/llvm_linux_8_0_0 ]; then
|
||||||
echo Building LLVM...
|
echo Building LLVM...
|
||||||
cd ../extern
|
cd ../extern
|
||||||
./llvm_build.sh
|
./llvm_build.sh
|
||||||
cd "$(dirname "$0")"
|
cd $SCRIPTPATH
|
||||||
fi
|
fi
|
||||||
|
|
||||||
### LIBS ###
|
### LIBS ###
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue