diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-05-11 15:01:09 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-05-11 15:01:09 -0400 |
| commit | 761a483e28935f0bdee4658c37dfaa4606c2660a (patch) | |
| tree | 2e0b76801f2838d568ebd7b9c76884599ada0744 /local-tomo | |
| parent | 84c29ce5facc166515b80abf79f33b2ea21bf9fa (diff) | |
Add new system for tracking versions.
Diffstat (limited to 'local-tomo')
| -rwxr-xr-x | local-tomo | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" "$@" |
