-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# version as of 23 February 2024 | ||
VERSION=2.8.3 | ||
set -o errexit | ||
set -o nounset | ||
|
||
export BIN_DIR=${BIN_DIR:-${HOME}/.local/bin} | ||
|
||
rm -rf tmp-install-minizinc | ||
mkdir tmp-install-minizinc | ||
pushd tmp-install-minizinc | ||
git clone https://github.com/MiniZinc/libminizinc.git | ||
cd libminizinc | ||
git checkout $VERSION | ||
mkdir build | ||
cd build | ||
cmake .. | ||
cmake --build . | ||
cp minizinc ${BIN_DIR}/minizinc | ||
mkdir -p ${BIN_DIR}/share | ||
cp -r ../share/minizinc ${BIN_DIR}/share/minizinc | ||
echo "minizinc executable is at ${BIN_DIR}/minizinc" | ||
ls -l ${BIN_DIR}/minizinc | ||
export MZN_STDLIB_DIR=${BIN_DIR}/share/minizinc/ | ||
echo "set env variable MZN_STDLIB_DIR to ${BIN_DIR}/share/minizinc. Please consider making it permanent" | ||
popd | ||
rm -rf tmp-install-minizinc |