forked from bmstu-iu9/refal-5-lambda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate-distrib.bat
67 lines (63 loc) · 1.99 KB
/
update-distrib.bat
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
60
61
62
63
64
65
66
67
@echo off
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 * * * * * * * * * * * * * * * * * * * * * * * * *
pushd src
setlocal
set RELEASE=1
call make.bat
endlocal
popd
pushd distrib
rd /q /s bin scripts compiler doc docs lexgen lib make editors rsl-decompiler
erase lib-prefixes\*.ref*
xcopy /e /y /i ..\build\compiler compiler
xcopy /e /y /i ..\build\interpreter interpreter
xcopy /e /y /i ..\build\lexgen lexgen
xcopy /e /y /i ..\build\make make
xcopy /e /y /i ..\build\rsl-decompiler rsl-decompiler
md bin
copy ..\src\scripts\rlc-rlmake.* bin\rlc.*
copy ..\src\scripts\rlc-rlmake.* bin\rlmake.*
ren bin\*.sh *.
md scripts
copy ..\scripts\* scripts
xcopy /e /y /i ..\lib lib
erase lib\*.*-prefix
erase lib\*.dll
copy ..\src\lib\prefixes\*.ref* lib-prefixes
md doc
xcopy /e /i /y ..\doc\examples doc\examples
copy ..\doc\*.pdf doc
copy ..\doc\*.jpg doc
md doc\OptPattern
copy ..\doc\OptPattern\*.pdf doc\OptPattern
copy ..\doc\OptPattern\*.md doc\OptPattern
md doc\historical
copy ..\doc\historical\*.txt doc\historical
copy ..\doc\historical\*.pdf doc\historical
copy ..\doc\historical\*.jpg doc\historical
copy ..\doc\historical\*.doc doc\historical
md doc\historical\Drogunov
copy ..\doc\historical\Drogunov\*.pdf doc\historical\Drogunov
md docs
copy ..\docs\*.md docs
copy ..\docs\*.ref docs
copy ..\docs\*.yml docs
copy ..\docs\*.js docs
copy ..\LICENSE .
copy ..\README.md .
copy ..\README.en.md .
md editors
xcopy /e /i /y ..\editors editors
call bootstrap.bat
popd
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 * * * * * * * * * * * * * * * * * * * * * * * * *