90_misc.sh 2.17 KB
Newer Older
1
2
3
4
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/common.sh

5
6
cd ${DIR}/../misc || exit 1

7
8
9
# taste-config
mkdir -p ${PREFIX}/bin
sed -e "s:INSTALL_PREFIX:${PREFIX}:g" taste-config.pl > taste-config.pl.tmp
10
install -m 755 taste-config.pl.tmp ${PREFIX}/bin/taste-config
11
rm -f taste-config.pl.tmp
12
13
14
15
16

# TASTE-Directives.asn
mkdir -p ${PREFIX}/share/taste
cp taste-directives/TASTE-Directives.asn ${PREFIX}/share/taste/TASTE-Directives.asn || exit 1

17
18
# TASTE types
mkdir -p ${PREFIX}/share/taste-types
19
cp taste-common-types/taste-types.asn ${PREFIX}/share/taste-types/ || exit 1
20

21
# Gnuplot
22
cp gnuplot/driveGnuPlotsStreams.pl ${PREFIX}/bin/taste-gnuplot-streams || exit 1
23
24
25

# PeekPoke component
mkdir -p ${PREFIX}/share/peekpoke
26
27
cp peek-poke/peekpoke.py ${PREFIX}/share/peekpoke/peekpoke.py || exit 1
cp peek-poke/PeekPoke.glade ${PREFIX}/share/peekpoke/PeekPoke.glade || exit 1
28

Maxime Perrotin's avatar
Maxime Perrotin committed
29
30
31
# Shared function types
cp -ru SharedTypes ${PREFIX}/share/

32
# msc templates for Space Creator (to convert MSC to Python)
33
34
cp -ru msc ${PREFIX}/share

35
36
# Space creator templates to convert XML to AADL
cp -ru space-creator/xml2aadl ${PREFIX}/share
Maxime Perrotin's avatar
Maxime Perrotin committed
37
cp -ru space-creator/xml2dv ${PREFIX}/share
38

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
39
# Helper scripts
40
cp -a helper-scripts/* ${PREFIX}/bin/
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
41

42
43
44
45
46
# GUI User-defined widgets
TARGET=${PREFIX}/share/AutoGUI
mkdir -p ${TARGET}
cp -a AutoGUI/UserWidgets.py ${TARGET}

47
48
# Copy AADL Libraries to Ocarina and ellidiss folders
make -C aadl-library install
49

50
# Ellidiss - point the PATH to the repo
51
52
# REAL_ELLIDISS=$(realpath "${DIR}/../ellidiss-GUI/TASTE-linux/bin")
REAL_ELLIDISS=$(realpath "${DIR}/../ellidiss-GUI/TASTE-v1-linux/bin")
53
54
PATH_CMD='export PATH=$PATH:'"${REAL_ELLIDISS}"
UpdatePATH
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
55

56
57
58
REAL_ELLIDISS=$(realpath "${DIR}/../ellidiss-GUI/TASTE-v1-linux")
PATH_CMD='export PATH=$PATH:'"${REAL_ELLIDISS}"
UpdatePATH
Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
59

60
61
62
63
REAL_ELLIDISS=$(realpath "${DIR}/../ellidiss-GUI/TASTE-linux/bin")
PATH_CMD='export PATH=$PATH:'"${REAL_ELLIDISS}"
UpdatePATH

taste's avatar
taste committed
64
65
66
67
68
# 64-bits version
REAL_ELLIDISS=$(realpath "${DIR}/../ellidiss-GUI/TASTE-linux64/bin")
PATH_CMD='export PATH='"${REAL_ELLIDISS}"':$PATH'
UpdatePATH

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
69
70
71
72
# Setup bash completion
grep bash_completion $HOME/.bashrc.taste >/dev/null || {
    echo '. /etc/bash_completion' >> $HOME/.bashrc.taste
}