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

# Build MSC tools
6 7
cd $DIR/../taste-MSC/ || exit 1
make || exit 1
8

9 10 11
# Install them alongside ASN1SCC (they share DLLs)
cp ./MSC-Antlr3/bin/msc2py.exe ${PREFIX}/share/asn1scc/ || exit 1
cp ./MSC-Antlr3/bin/taste-extract-asn-from-design.exe ${PREFIX}/share/asn1scc/ || exit 1
12

13 14 15 16 17 18
# Install the MSC tracing-related tools (tracerd.py, etc) 
cd $DIR/../misc/AutoGUI || exit 1
TARGET=${PREFIX}/share/AutoGUI/
mkdir -p ${TARGET}
cp -u * ${TARGET}

19
# Update the path
20
PATH_CMD='export PATH=$PATH:$HOME/.local/bin'
21
UpdatePATH