diff --git a/scripts/build_pestpp_mac_arm.sh b/scripts/build_pestpp_mac_arm.sh new file mode 100755 index 00000000..29e274c5 --- /dev/null +++ b/scripts/build_pestpp_mac_arm.sh @@ -0,0 +1,17 @@ +#!/bin/sh +realpath() { + [[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}" +} +set -e + +full_path=$(realpath $0) +script_path=$(dirname $full_path) +cd "$script_path"/.. + +rm -rfd build +mkdir build +cd build +cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DFORCE_STATIC=OFF .. +make -j +cpack -G TGZ +cp *.tar.gz ../