05_antlr.sh 365 Bytes
Newer Older
1 2
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
3
. ${DIR}/common.sh
4 5 6

# Setup ANTL3 support in ~/.local/bin
cd $DIR/../antlr/antlr_python_runtime-3.1.3 || exit 1
7 8
pip2 freeze | grep antlr-python-runtime >/dev/null \
    || pip2 install --user --upgrade . || exit 1
9 10 11

# Add .local/bin to PATH
PATH_CMD='export PATH=$PATH:$HOME/.local/bin'
12
UpdatePATH