diff --git a/util/activate.sh b/util/activate.sh index d90d80c6..adce936e 100755 --- a/util/activate.sh +++ b/util/activate.sh @@ -3,8 +3,13 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" if [ ! -e "$DIR/local/bin/i686-pc-toaru-gcc" ]; then - echo "Toolchain has not been built. Please run \`bash util/build-gcc.sh\`." >&2 - exit 1 + echo -n "Toolchain has not been built. Would you like to build it now? (y/n) " >&2 + read response + case $response in + [yY]) bash $DIR/build-gcc.sh ;; + [nN]) exit 1 ;; + *) + esac fi export PATH="$DIR/local/bin:$PATH"