blob: bdf1e0da02305697002112e1880b825f835a76d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
version=$(awk '/^## / {print $2; exit}' CHANGES.md)
here="$(realpath "$(dirname "$0")")"
if [ ! -e "$here/build/bin/tomo_$version" ]; then
echo "Tomo hasn't been compiled yet! Run \`make\` to compile it!"
exit 1;
fi
PATH="$here/build/bin${PATH:+:$PATH}" \
TOMO_PATH="$here/build" \
tomo_"$version" "$@"
|