Add executable models and tools to download and build them
This commit is contained in:
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
Executable
+6
@@ -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
|
||||
Executable
+15
@@ -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"
|
||||
Reference in New Issue
Block a user