3 if [%1] neq [] (set VERSION=%1) else (set /p VERSION=Version? )
\r
4 if %VERSION%==trunk (
\r
6 rem Remove previous trunk builds
\r
7 del /Q htmlpurifier-trunk*
\r
8 ) else (set LOC=tags/%VERSION%)
\r
9 set NAME=htmlpurifier-%VERSION%
\r
11 svn export --force http://htmlpurifier.org/svnroot/htmlpurifier/%LOC% %NAME%
\r
14 zip -r %NAME%.zip %NAME%
\r
17 set SNAME=%NAME%-lite
\r
19 xcopy %NAME%\library %SNAME%\library\ /E /Q
\r
20 call copy-meta-files %NAME% %SNAME%
\r
21 zip -r %SNAME%.zip %SNAME%
\r
25 set SNAME=%NAME%-standalone
\r
27 call php %NAME%\maintenance\merge-library.php
\r
28 xcopy %NAME%\library\standalone %SNAME%\standalone\ /E /Q
\r
29 copy %NAME%\library\HTMLPurifier.standalone.php %SNAME%\HTMLPurifier.standalone.php
\r
30 call copy-meta-files %NAME% %SNAME%
\r
31 zip -r %SNAME%.zip %SNAME%
\r
33 rmdir /S /Q %NAME%\library\standalone
\r
34 rmdir /S /Q %NAME%\tests\blanks
\r
35 mkdir %NAME%\tests\blanks
\r
36 del %NAME%\library\HTMLPurifier.standalone.php
\r