toaruos/util/helpful-toolchain-error.sh
2016-12-29 14:43:01 +09:00

10 lines
373 B
Bash
Executable File

#!/bin/bash
if [ -d toolchain/local/bin ]; then
echo 'You have not activated your toolchain (. toolchain/activate.sh)'
elif [ -e .toolchain ]; then
echo "You have not activated your toolchain (. `cat .toolchain | sed 's%hdd/usr%toolchain/activate.sh%'`)"
else
echo 'No toolchain found. Did you mean to run `make toolchain` or source an existing toolchain?'
fi