|
6 | 6 | @rem
|
7 | 7 | @rem 1) This script uses the zip.exe program to create the release zip file.
|
8 | 8 | @rem
|
9 |
| -@rem 2) The ZIPPath environment variable must exist and store the path to the |
10 |
| -@rem directory where zip.exe is located. ZIPPATH must not have a trailing |
11 |
| -@rem backslash. |
| 9 | +@rem 2) If the ZIPPATH environment variable exists it must provide the path to |
| 10 | +@rem the directory where zip.exe is located. ZIPPATH *must not* have a |
| 11 | +@rem trailing backslash. If ZIPPATH does not exist then Zip.exe is expected |
| 12 | +@rem to be on the path. |
| 13 | +@rem |
| 14 | +@rem 3) A release version number may be provided as a parameter to the script. |
| 15 | +@rem When present the version number is included in the name of the zip file |
| 16 | +@rem that is created. |
12 | 17 | @rem
|
13 | 18 | @rem Any copyright in this file is dedicated to the Public Domain.
|
14 | 19 | @rem http://creativecommons.org/publicdomain/zero/1.0/
|
15 | 20 | @rem ---------------------------------------------------------------------------
|
16 | 21 |
|
17 |
| - |
18 | 22 | @echo off
|
19 | 23 |
|
20 | 24 | setlocal
|
21 | 25 |
|
22 | 26 | cd ..
|
23 | 27 |
|
24 |
| -set OutFile=Release\dd-sysinfo.zip |
25 | 28 | set SrcDir=
|
26 | 29 | set DocsDir=Docs
|
27 | 30 | set DemoDir=Demos
|
28 | 31 |
|
| 32 | +set OutFile=Release\dd-sysinfo |
| 33 | +if not "%1" == "" set OutFile=%OutFile%-%1 |
| 34 | +set OutFile=%OutFile%.zip |
| 35 | +echo Output file name = %OutFile% |
| 36 | +if exist %OutFile% del %OutFile% |
| 37 | + |
| 38 | +if not "%ZIPPATH%" == "" set ZIPPATH=%ZIPPATH%\ |
| 39 | +echo Zip path = %ZIPPATH% |
| 40 | + |
29 | 41 | if exist Release rmdir /S /Q Release
|
30 | 42 | mkdir Release
|
31 | 43 |
|
32 |
| -echo "OUTFILE=%OutFile%" |
33 |
| -if exist %OutFile% del %OutFile% |
34 |
| - |
35 |
| -%ZIPPATH%\Zip.exe -j -9 %OutFile% PJSysInfo.pas |
| 44 | +%ZIPPATH%Zip.exe -j -9 %OutFile% PJSysInfo.pas |
36 | 45 |
|
37 |
| -%ZIPPATH%\Zip.exe -j -9 %OutFile% %DocsDir%\ChangeLog.txt |
38 |
| -%ZIPPATH%\Zip.exe -j -9 %OutFile% %DocsDir%\MPL-2.0.txt |
39 |
| -%ZIPPATH%\Zip.exe -j -9 %OutFile% %DocsDir%\ReadMe.htm |
40 |
| -%ZIPPATH%\Zip.exe -j -9 %OutFile% %DocsDir%\Documentation.URL |
| 46 | +%ZIPPATH%Zip.exe -j -9 %OutFile% CHANGELOG.md |
| 47 | +%ZIPPATH%Zip.exe -j -9 %OutFile% README.md |
| 48 | +%ZIPPATH%Zip.exe -j -9 %OutFile% %DocsDir%\MPL-2.0.txt |
| 49 | +%ZIPPATH%Zip.exe -j -9 %OutFile% %DocsDir%\Documentation.URL |
41 | 50 |
|
42 |
| -%ZIPPATH%\Zip.exe %OutFile% -r -9 %DemoDir%\*.* -x *.svn\* |
| 51 | +%ZIPPATH%Zip.exe %OutFile% -r -9 %DemoDir%\*.* |
43 | 52 |
|
44 | 53 | endlocal
|
0 commit comments