aboutsummaryrefslogtreecommitdiff
path: root/local-tomo
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-05-11 15:01:09 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-05-11 15:01:09 -0400
commit761a483e28935f0bdee4658c37dfaa4606c2660a (patch)
tree2e0b76801f2838d568ebd7b9c76884599ada0744 /local-tomo
parent84c29ce5facc166515b80abf79f33b2ea21bf9fa (diff)
Add new system for tracking versions.
Diffstat (limited to 'local-tomo')
-rwxr-xr-xlocal-tomo5
1 files changed, 3 insertions, 2 deletions
diff --git a/local-tomo b/local-tomo
index 9e89b15f..c7eaeb21 100755
--- a/local-tomo
+++ b/local-tomo
@@ -1,6 +1,7 @@
#!/bin/sh
+version=$(awk '/^## / {print $2; exit}' CHANGES.md)
here="$(realpath "$(dirname "$0")")"
-if [ ! -e "$here/build/bin/tomo" ]; then
+if [ ! -e "$here/build/bin/tomo_$version" ]; then
echo "Tomo hasn't been compiled yet! Run \`make\` to compile it!"
exit 1;
fi
@@ -10,4 +11,4 @@ LD_LIBRARY_PATH="$here/build/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}" \
LIBRARY_PATH="$here/build/lib${LIBRARY_PATH:+:$LIBRARY_PATH}" \
C_INCLUDE_PATH="$here/build/include${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}" \
CPATH="$here/build/include${CPATH:+:$CPATH}" \
-tomo "$@"
+tomo_"$version" "$@"