build_examples.sh 2.33 KB
Newer Older
1
(cd git/clean-libraries; git checkout master Examples/Small\ Examples Examples/GenLib)
2
3
mkdir -p clean-libraries/Examples
mv git/clean-libraries/Examples/Small\ Examples clean-libraries/Examples
4
mv git/clean-libraries/Examples/GenLib clean-libraries/Examples
5

6
mkdir -p clean/examples/SmallExamples
7
8
for a in acker copyfile e fsieve hamming invperm lqueen mulmat nfib pascal reverse revtwice \
	rfib sieve squeen str_arit stwice tak twice war_seq;
9
do cp clean-libraries/Examples/Small\ Examples/$a.icl clean/examples/SmallExamples
10
done
11
12
13
cp clean-libraries/Examples/Small\ Examples/run_all_programs clean/examples/SmallExamples
cp clean-libraries/Examples/Small\ Examples/Makefile clean/examples/SmallExamples/Makefile

14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
mkdir -p clean/examples/GenericsExamples
cp clean-libraries/Examples/GenLib/*.icl clean/examples/GenericsExamples

cat > clean/examples/GenericsExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt eq -o eq
clm -nt freevars -o freevars
clm -nt fromStr -o fromStr
clm -nt mapSt -o mapSt
clm -nt reduce -o reduce
clm -nt -IL Generics toStr -o toStr
clm -nt value -o value
clm -nt zip -o zip
EOF
chmod +x clean/examples/GenericsExamples/make.sh

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
57
58
mkdir -p clean/examples/PlatformExamples/socket
mkdir -p clean/examples/PlatformExamples/WebPM/icons
cp clean-platform/src/examples/*.* clean/examples/PlatformExamples
cp clean-platform/src/examples/socket/*.icl clean/examples/PlatformExamples/socket
cp clean-platform/src/examples/WebPM/*.* clean/examples/PlatformExamples/WebPM
cp clean-platform/src/examples/WebPM/icons/*.* clean/examples/PlatformExamples/WebPM/icons

cat > clean/examples/PlatformExamples/make.sh<< EOF
export PATH=../../bin:\$PATH
clm -nt -IL Platform IPLookup -o IPLookup
clm -nt -IL Platform ProcessDemo -o ProcessDemo
clm -nt -IL Platform MapDemo -o MapDemo
clm -nt -IL Platform SQLDbDemo -o SQLDbDemo
clm -aC,-h,600m -nt -IL Platform -IL TCPIP WebDemo -o WebDemo
EOF
chmod +x clean/examples/PlatformExamples/make.sh

cat > clean/examples/PlatformExamples/WebPM/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -aC,-h,600m -nt -IL Platform -IL TCPIP PM -o PM
EOF
chmod +x clean/examples/PlatformExamples/WebPM/make.sh

cat > clean/examples/PlatformExamples/socket/make.sh<< EOF
export PATH=../../../bin:\$PATH
clm -nt -IL Platform client -o client
clm -nt -IL Platform server -o server
EOF
chmod +x clean/examples/PlatformExamples/socket/make.sh