Add executable models and tools to download and build them
This commit is contained in:
parent
2a0cbece8d
commit
8a673365f6
BIN
models/minimal-viable-alteration
Executable file
BIN
models/minimal-viable-alteration
Executable file
Binary file not shown.
BIN
models/stick-probability
Executable file
BIN
models/stick-probability
Executable file
Binary file not shown.
6
tools/obtain-all-executables.bash
Executable file
6
tools/obtain-all-executables.bash
Executable file
@ -0,0 +1,6 @@
|
||||
CMD="$(dirname "$(realpath "$0")")/obtain-executable.bash"
|
||||
|
||||
# Download the two models and save them in the models directory
|
||||
|
||||
"$CMD" minimal-viable-alteration models/minimal-viable-alteration
|
||||
"$CMD" stick-probability models/stick-probability
|
||||
15
tools/obtain-executable.bash
Executable file
15
tools/obtain-executable.bash
Executable file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
GIT_REF=$1
|
||||
OUTPUT_PATH=$(realpath "$2")
|
||||
|
||||
# Checkout in a temp directory so not to clutter anything out
|
||||
cd "$(mktemp -d)" || exit
|
||||
git clone ssh://git@git.joshuacoles.me:2222/joshuacoles/compb-dla-model.git .
|
||||
git checkout "$GIT_REF"
|
||||
|
||||
# Clean and then build
|
||||
make clean && make all
|
||||
|
||||
# Copy final executable to the specified output
|
||||
cp ./run "$OUTPUT_PATH"
|
||||
Loading…
Reference in New Issue
Block a user