langtoncant/mk.sh

10 lines
319 B
Bash
Raw Normal View History

2021-12-23 02:37:02 +01:00
DIR="$( cd "$( dirname "$(readlink -f "$0")" )" > /dev/null && pwd )"
SHPATH="$(ls -t "$HOME/.vscode/extensions/entan-gl.cc65-vice-"*"/build.sh" | head -1)"
if test -e "$DIR/../../../build.sh"; then
sh "$DIR/../../../build.sh" make "$@"
elif test -e "$SHPATH"; then
sh "$SHPATH" make "$@"
else
make "$@"
fi