diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-26 18:39:41 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2018-09-26 18:40:11 +0200 |
commit | aee63af7b1b98387288d842be66a1dca007bed27 (patch) | |
tree | dc1c681af252159f8c70b58540b258d61c7a98e0 /3rd-party | |
parent | Add breakpad submodule (diff) | |
download | smolbote-aee63af7b1b98387288d842be66a1dca007bed27.tar.xz |
breakpad: use absolute paths in build.sh
Diffstat (limited to '3rd-party')
-rwxr-xr-x | 3rd-party/breakpad/build.sh | 14 |
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 |