forked from Arelle/Arelle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build27Dist.bat
60 lines (51 loc) · 1.97 KB
/
build27Dist.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
rem Build Arelle 27 server distribution
@set PYTHON27DIR=c:\python27
@set PYTHON64DIR=c:\python32
"%PYTHON64DIR%\python" buildVersion.py
@set CMDLINEZIP=C:\Program Files (x86)\7z\7za.exe
@set BUILT27DIR=build\svr-2.7
mkdir build
rmdir %BUILT27DIR% /s/q
mkdir %BUILT27DIR%
mkdir dist
copy arelleCmdLine.py %BUILT27DIR%
copy arelle_test.py %BUILT27DIR%
copy conftest.py %BUILT27DIR%
copy app.yaml %BUILT27DIR%
copy backends.yaml %BUILT27DIR%
mkdir %BUILT27DIR%\arelle
xcopy arelle %BUILT27DIR%\arelle /s
del %BUILT27DIR%\*.pyc /s
del %BUILT27DIR%\arelle\pyparsing\*.py* /q
rmdir %BUILT27DIR%\arelle\scripts-macOS /s/q
rmdir %BUILT27DIR%\arelle\scripts-unix /s/q
rmdir %BUILT27DIR%\arelle\scripts-windows /s/q
copy arelle\scripts-unix\*.* %BUILT27DIR%
rem delete GUI modules
del %BUILT27DIR%\*.pyw /s
del %BUILT27DIR%\arelle\CntlrQuickBooks.py
del %BUILT27DIR%\arelle\CntlrWinMain.py
del %BUILT27DIR%\arelle\CntlrWinTooltip.py
del %BUILT27DIR%\arelle\Dialog*.py /s
del %BUILT27DIR%\arelle\plugin\Dialog*.py
del %BUILT27DIR%\arelle\UiUtil.py
del %BUILT27DIR%\arelle\ViewWin*.py
del %BUILT27DIR%\arelle\WatchRss.py
%PYTHON27DIR%\python %PYTHON27DIR%\Scripts\3to2 -w %BUILT27DIR%
rem %PYTHON27DIR%\python %PYTHON27DIR%\Scripts\3to2 -w %BUILT27DIR%\webserver
rem %PYTHON27DIR%\python %PYTHON27DIR%\Scripts\3to2 -w %BUILT27DIR%\xlrd
rem %PYTHON27DIR%\python %PYTHON27DIR%\Scripts\3to2 -w %BUILT27DIR%\xlwt
del %BUILT27DIR%\*.bak /s
rem copy non-converted PythonUtil.py (to block 3to2 conversions
copy /Y arelle\PythonUtil.py %BUILT27DIR%\arelle\PythonUtil.py
rem copy bottle that works on 2.7
copy /Y arelle\webserver\bottle.py %BUILT27DIR%\arelle\webserver\bottle.py
rem copy pyparsing that works on 2.7
copy /Y arelle\pyparsing\__init__.py %BUILT27DIR%\arelle\pyparsing
copy /Y arelle\pyparsing\pyparsing_py2.py2 %BUILT27DIR%\arelle\pyparsing\pyparsing_py2.py
del /Q "dist\\arelle-svr-2.7*.zip"
cd build
"%CMDLINEZIP%" a "..\\dist\\arelle-svr-2.7.zip" svr-2.7
cd ..
rem rename for build date
call buildRenameSvr27.bat