]> git.saurik.com Git - wxWidgets.git/blob - wxPython/distrib/makepreview.bat
added tech note about writing unit tests
[wxWidgets.git] / wxPython / distrib / makepreview.bat
1 rem @echo off
2
3 setlocal
4 set BASE=_distrib_zip\wxPython-%1
5
6 rem **** Make a directory to build up a distribution tree
7 mkdir _distrib_zip
8 mkdir %BASE%
9 mkdir %BASE%\wx
10 mkdir %BASE%\wxPython
11 mkdir %BASE%\demo
12 mkdir %BASE%\scripts
13 mkdir %BASE%\docs
14 mkdir %BASE%\docs\xml
15
16
17 rem *** copy files
18 copy /s wx %BASE%\wx
19 copy /s wxPython %BASE%\wxPython
20 copy /s demo %BASE%\demo
21 copy /s scripts %BASE%\scripts
22
23 copy ..\BIN\*h_*.dll %BASE%\wx
24 copy docs\MigrationGuide.* %BASE%\docs
25 copy docs\CHANGES.txt %BASE%\docs
26 copy docs\xml\wxPython-metadata.xml %BASE%\docs\xml
27
28
29
30 rem *** remove unneeded files
31 cd _distrib_zip
32 ffind /A:D /SB CVS > del-files
33 ffind /SB *.pyc >> del-files
34 cat del-files
35 del /sxzy @del-files
36 del del-files
37 cd ..
38
39
40
41 rem *** bundle it all up
42 cd _distrib_zip
43 tar cvf ../dist/wxPythonWIN32-preview-%1.tar wxPython-%1
44 gzip -9 ../dist/wxPythonWIN32-preview-%1.tar
45 mv ../dist/wxPythonWIN32-preview-%1.tar.gz ../dist/wxPythonWIN32-preview-%1.tgz
46
47 rem *** cleanup
48 cd ..
49 del /sxzy _distrib_zip
50
51 endlocal
52
53
54