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

# Fetch and install latest ASN1SCC release
6 7
mkdir -p ${PREFIX}/share/asn1scc/ || exit 1
cd ${PREFIX}/share/  || exit 1
8
VER=$(asn1.exe 2>&1 | grep '^Current' | awk '{print $NF}')
9 10
if [ "${VER}" != "3.3.20" ] ; then
    wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.20/asn1scc-bin-3.3.20.tar.bz2 \
11
        | tar jxvf -
12
fi
13

14 15 16
# Add to PATH
PATH_CMD='export PATH=$PATH:'"${PREFIX}/share/asn1scc/"
UpdatePATH