Skip to content

Commit

Permalink
Added ability to pass in make arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
niemasd committed Dec 2, 2024
1 parent b285160 commit 9dd7815
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/compile_all_versions.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/usr/bin/env bash
# compile all versions of tn93 into the current working directory
# USAGE: ./compile_all_versions [MAKE_FLAGS]
wget -qO- "https://api.github.com/repos/veg/tn93/releases" | grep '"tarball_url"' | cut -d'"' -f4 | while read url ; do
version=$(echo "$url" | rev | cut -d'/' -f1 | rev)
wget -qO- "$url" | tar -zx
cd veg-tn93-*
cmake .
make
make $@
mv tn93 "../tn93.$version"
cd ..
rm -rf veg-tn93-*
exit # TODO DELETE
done

0 comments on commit 9dd7815

Please sign in to comment.