15_asn1scc.sh 511 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 9 10 11 12
VER=$(asn1.exe 2>&1 | grep '^Current' | awk '{print $NF}')
if [ "${VER}" != "3.3.09" ] ; then
    wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.9/asn1scc-bin-3.3.9.tar.gz \
        | tar zxvf -
fi
13

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