Commit 91e4b8c7 authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Install ASN1SCC only if it's not there yet.

parent 5d8f3e6a
......@@ -5,8 +5,11 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Fetch and install latest ASN1SCC release
mkdir -p ${PREFIX}/share/asn1scc/ || exit 1
cd ${PREFIX}/share/ || exit 1
wget -q -O - https://github.com/ttsiodras/asn1scc/releases/download/3.3.9/asn1scc-bin-3.3.9.tar.gz \
| tar zxvf -
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
# Add to PATH
PATH_CMD='export PATH=$PATH:'"${PREFIX}/share/asn1scc/"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment