aboutsummaryrefslogtreecommitdiff
path: root/local-tomo
blob: 76864837a02c0d8b5fe5616e5139501895a1a745 (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" "$@"