1rem Tool to assemble Windows builds
2rem Requirements are 7-zip, py2exe, and FreeExtractor
3
4PATH=C:\python27;C:\python26;C:\progra~1\7-zip;C:\progra~2\7-zip;%PATH%
5
6rem ****** Clean out the old junk
7del /s /f /q dist
8
9rem ****** Compile our executable and core zipfile
10python setup.py py2exe
11
12rem ****** Remove extras from core zipfile
13cd dist
147z d namebench.zip tcl\*.*
15rmdir /s /q tcl\tcl8.5\tzdata tcl\tk8.5\demos
16del tcl\tk8.5\images\*.eps
17
18rem ****** Final assembly of zipfile
19copy ..\README.txt .
207z a namebench_for_Windows.zip -r * >nul
21
22rem ****** Test assembled zipfile
23namebench -x -O 8.8.8.8 -q5 -o test.html
24start test.html
25
26cd ..
27