wxWidgets/wxPython/distrib/makepreview.bat
Robin Dunn bf158fe6c6 Switch to bzip2 for compression
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-02 03:43:46 +00:00

55 lines
1008 B
Batchfile
Executable File

rem @echo off
setlocal
set BASE=_distrib_zip\wxPython-%1
rem **** Make a directory to build up a distribution tree
mkdir _distrib_zip
mkdir %BASE%
mkdir %BASE%\wx
mkdir %BASE%\wxPython
mkdir %BASE%\demo
mkdir %BASE%\scripts
mkdir %BASE%\docs
mkdir %BASE%\docs\xml
rem *** copy files
copy /s wx %BASE%\wx
copy /s wxPython %BASE%\wxPython
copy /s demo %BASE%\demo
copy /s scripts %BASE%\scripts
copy ..\BIN\*h_*.dll %BASE%\wx
copy docs\MigrationGuide.* %BASE%\docs
copy docs\CHANGES.txt %BASE%\docs
copy docs\xml\wxPython-metadata.xml %BASE%\docs\xml
rem *** remove unneeded files
cd _distrib_zip
ffind /A:D /SB CVS > del-files
ffind /SB *.pyc >> del-files
cat del-files
del /sxzy @del-files
del del-files
cd ..
rem *** bundle it all up
cd _distrib_zip
tar cvf ../dist/wxPythonWIN32-preview-%1.tar wxPython-%1
bzip2 -9 ../dist/wxPythonWIN32-preview-%1.tar
mv ../dist/wxPythonWIN32-preview-%1.tar.gz ../dist/wxPythonWIN32-preview-%1.tgz
rem *** cleanup
cd ..
del /sxzy _distrib_zip
endlocal