Skip to content

Commit

Permalink
Allow build.sh to run from any directory
Browse files Browse the repository at this point in the history
  • Loading branch information
leonzdev committed Oct 21, 2017
1 parent 5956ec6 commit c633b03
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/bin/sh
set -vx
rm -rf ./build
mkdir -p ./build
cd build
SCRIPT=$(readlink -f "$0")
DIR=$(dirname "$SCRIPT")
BUILD_DIR=$DIR/build
rm -rf $BUILD_DIR
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake .. -DWITH_LIBCPUID=OFF -DWITH_AEON=OFF -DWITH_HTTPD=OFF
make

0 comments on commit c633b03

Please sign in to comment.