aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x3rd-party/breakpad/build.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/3rd-party/breakpad/build.sh b/3rd-party/breakpad/build.sh
index 0d8d306..83c1181 100755
--- a/3rd-party/breakpad/build.sh
+++ b/3rd-party/breakpad/build.sh
@@ -5,12 +5,20 @@ if [ ! -f breakpad.git/src/third_party/lss/linux_syscall_support.h ]; then
curl -L https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h?format=TEXT | base64 --decode > breakpad.git/src/third_party/lss/linux_syscall_support.h
fi
+buildpath=$(pwd)/build
+if [ ! -d $buildpath ]; then
+ rm -r $buildpath
+fi
+
installpath=$(pwd)/install
-rm -r $installpath
+if [ ! -d $installpath ]; then
+ rm -r $installpath
+fi
+
mkdir -p $installpath
-mkdir build && cd build
+mkdir $buildpath && cd $buildpath
../breakpad.git/configure --prefix=$installpath
make -j 2
make install
-rm -r build
+rm -r $buildpath