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

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