15_asn1scc.sh 480 Bytes
Newer Older
1
#!/bin/bash
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
2
TASTE_PATHS=$HOME/.bashrc.taste
3 4

# Fetch and install latest ASN1SCC release
5
mkdir -p $HOME/tool-inst/share/asn1scc/ || exit 1
6
cd $HOME/tool-inst/share/  || exit 1
7 8
wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.9/asn1scc-bin-3.3.9.tar.gz \
    | tar zxvf -
9 10 11

# Add ~/tool-inst/share/asn1scc/ to PATH
PATH_CMD='export PATH=$PATH:$HOME/tool-inst/share/asn1scc/'
12
grep "${PATH_CMD}" ${TASTE_PATHS} >/dev/null || echo "${PATH_CMD}" >> ${TASTE_PATHS}