mirror of
https://github.com/Z3Prover/z3
synced 2025-04-05 17:14:07 +00:00
25 lines
488 B
Bash
25 lines
488 B
Bash
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$( cd ${BASH_SOURCE[0]%/*} ; echo $PWD )"
|
|
|
|
set -x
|
|
set -e
|
|
set -o pipefail
|
|
|
|
: ${TEST_INSTALL?"TEST_INSTALL must be specified"}
|
|
: ${Z3_BUILD_DIR?"Z3_BUILD_DIR must be specified"}
|
|
|
|
if [ "X${TEST_INSTALL}" != "X1" ]; then
|
|
echo "Skipping install"
|
|
exit 0
|
|
fi
|
|
|
|
# Set CMake generator args
|
|
source ${SCRIPT_DIR}/set_generator_args.sh
|
|
|
|
cd "${Z3_BUILD_DIR}"
|
|
|
|
sudo cmake --build $(pwd) --target install "${GENERATOR_ARGS[@]}"
|
|
|
|
# TODO: Test the installed version in some way
|