15_asn1scc.sh 437 Bytes
Newer Older
1
#!/bin/bash
2 3

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

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