blob: 8c660977d73706b14350eb801a4bbc573767b2bc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
#!/bin/bash
if [ -d /opt/clean ]; then
rm -rf /opt/clean.bak
mv /opt/clean /opt/clean.bak
else
rm -rf /opt/clean
fi
mkdir /opt/clean
for pkg in base lib-directory lib-dynamics lib-gast lib-graphcopy lib-itasks lib-platform lib-sapl lib-tcpip test
do
curl ftp://ftp.cs.ru.nl/pub/Clean/builds/linux-x64/clean-$pkg-linux-x64-latest.tgz\
| tar xz --strip-components=1 -C /opt/clean
done
grep -h '^[[:space:]]' /opt/clean/etc/*.env >> /opt/clean/etc/IDEEnvs
cat ~/.clean/iTasksDev.env >> /opt/clean/etc/IDEEnvs
sed -i 's=lib/exe/linker=lib/exe/linker:-no-pie=' /opt/clean/etc/IDEEnvs
mv /opt/clean/lib/exe /opt/clean/exe
ln -s /opt/clean/exe /opt/clean/lib/exe
# cloogletags
cloogletags -a -c -d /opt/clean/lib -o /opt/clean/lib/tags
# completion
mkdir -p /opt/clean/etc/completion
for f in ~/VersionControl/clean-completion/*; do
[ -f "$f" ] || continue
base="$(basename "$f")"
if [[ "$base" == "Makefile" ]] || [[ "$base" == "README.md" ]] || [[ "$base" =~ .tar.gz$ ]]; then
continue
fi
ln -s "$(ls -1 "$f")" /opt/clean/etc/completion/$base
done
# clm
rm /opt/clean/bin/clm; ln -s /home/camil/VersionControl/clean-tools-git/clm/clm /opt/clean/bin/clm
# cpm
rm /opt/clean/bin/cpm; ln -s /home/camil/VersionControl/clean-ide/cpm/cpm /opt/clean/bin/cpm
# cocl
rm /opt/clean/exe/cocl; ln -s /home/camil/VersionControl/clean-compiler/cocl /opt/clean/exe/cocl
# clean-test
rm /opt/clean/bin/cleantest; ln -s /home/camil/VersionControl/clean-test/cleantest /opt/clean/bin/cleantest
# clean-test-properties
ln -s /home/camil/VersionControl/clean-test-properties/src/testproperties /opt/clean/bin/testproperties
# clean-doc
mkdir /opt/clean/data
ln -s /home/camil/VersionControl/clean-doc/data/cleandoc-default /opt/clean/data/cleandoc-default
ln -s /home/camil/VersionControl/clean-doc/src/cleandoc /opt/clean/bin/cleandoc
# cleanprof2callgrind
ln -s /home/camil/VersionControl/cleanprof2callgrind/cleanprof2callgrind /opt/clean/bin/cleanprof2callgrind
# abc-interpreter
ln -s /home/camil/VersionControl/abc-interpreter/src/optimise /opt/clean/exe/optimise
ln -s /home/camil/VersionControl/abc-interpreter/src/bcgen /opt/clean/exe/bcgen
ln -s /home/camil/VersionControl/abc-interpreter/src/link /opt/clean/exe/bclink
|