-
Notifications
You must be signed in to change notification settings - Fork 35
/
update-distrib.sh
executable file
·59 lines (55 loc) · 1.98 KB
/
update-distrib.sh
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
57
58
59
#!/bin/bash
echo "* * * * * * * * * * * * * * * * * * * * * * * * *"
echo "* U P D A T E V E R S I O N N U M B E R !!! *"
echo "* file: docs/setup.sh *"
echo "* file: src/common/Version.ref *"
echo "* file: src/interpreter/main.ref *"
echo "* file: NEWS.md *"
echo "* * * * * * * * * * * * * * * * * * * * * * * * *"
( cd src && RELEASE=1 ./make.sh || exit 1 )
pushd distrib || exit
rm -rf bin scripts compiler doc docs lexgen lib make editors rsl-decompiler
rm -f lib-prefixes/*.ref*
cp -R ../build/{compiler,lexgen,interpreter,make,rsl-decompiler} .
mkdir bin
cp ../src/scripts/rlc-rlmake.bat bin/rlc.bat
cp ../src/scripts/rlc-rlmake.sh bin/rlc
cp ../src/scripts/rlc-rlmake.bat bin/rlmake.bat
cp ../src/scripts/rlc-rlmake.sh bin/rlmake
mkdir scripts
cp ../scripts/* scripts
cp -R ../lib lib
rm -f lib/*.*-prefix *.dll *.so
cp ../src/lib/prefixes/*.ref* lib-prefixes
mkdir doc
cp -R ../doc/examples doc/examples
cp ../doc/*.pdf doc
cp ../doc/*.jpg doc
mkdir doc/OptPattern
cp ../doc/OptPattern/*.pdf doc/OptPattern
cp ../doc/OptPattern/*.md doc/OptPattern
mkdir doc/historical
cp ../doc/historical/*.txt doc/historical
cp ../doc/historical/*.pdf doc/historical
cp ../doc/historical/*.jpg doc/historical
cp ../doc/historical/*.doc doc/historical
mkdir doc/historical/Drogunov
cp ../doc/historical/Drogunov/*.pdf doc/historical/Drogunov
mkdir docs
cp ../docs/*.md docs
cp ../docs/*.ref docs
cp ../docs/*.yml docs
cp ../docs/*.js docs
cp ../LICENSE .
cp ../*.md .
mkdir editors
cp -R ../editors/* editors
./bootstrap.sh
popd || exit
echo "* * * * * * * * * * * * * * * * * * * * * * * * *"
echo "* U P D A T E V E R S I O N N U M B E R !!! *"
echo "* file: docs/setup.sh *"
echo "* file: src/common/Version.ref *"
echo "* file: src/interpreter/main.ref *"
echo "* file: NEWS.md *"
echo "* * * * * * * * * * * * * * * * * * * * * * * * *"