]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/makeinno.bat
remove also wxT(); it's confusing, too; do load wxstd.mo catalog after calling wxLoca...
[wxWidgets.git] / distrib / msw / makeinno.bat
CommitLineData
46f5ad7d
JS
1@echo off
2Rem Make an Inno Setup distribution list, where files and dirs are represented by
3Rem sections like this:
4Rem [Dirs]
5Rem Name: {app}\docs
6Rem
7Rem [Files]
8Rem Source: c:\wx2stable\wxWindows\deliver2\docs\readme.txt; DestDir: {app}\docs\; DestName: readme.txt
9
e74a9319 10set wxwindir=%WXWIN
46f5ad7d
JS
11
12Rem Generate a list of all files in the distribution.
13Rem We have to be in the right directory already.
14dir /BS >& %TEMP\files1.tmp
15
16Rem Now we iterate through the list of files, writing out the middle section of
17Rem the file.
18Rem We have to remove the first part of the path,
19Rem by truncating the start by the size of the current directory.
20
21set sz=%@EVAL[%@LEN[%_CWD]+1]
22set len=%@LINES[%TEMP\files1.tmp]
23
24erase /Y %TEMP\files2.tmp
25
26Rem Add directories
27
28echo. >> %temp\files2.tmp
29echo [Dirs] >> %temp\files2.tmp
30
31do i = 0 to %len by 1
32 set line=%@LINE[%TEMP\files1.tmp,%i]
33 Rem Skip files.
34 if not isdir %line enddo
35 set sz2=%@LEN[%line]
36 set n=%@EVAL[%sz2-%sz]
37 set line2=%@SUBSTR[%line,%sz,%n]
38 if "%line2%" == "" enddo
39
40 echo Name: {app}\%line2 >> %TEMP\files2.tmp
41enddo
42
43echo. >>%TEMP\files2.tmp
44
45Rem Add files
46
47echo. >> %temp\files2.tmp
48echo [Files] >> %temp\files2.tmp
49
50do i = 0 to %len by 1
51 set line=%@LINE[%TEMP\files1.tmp,%i]
52 Rem Skip directories.
53 if isdir %line enddo
54 set sz2=%@LEN[%line]
55 set n=%@EVAL[%sz2-%sz]
56 set line2=%@SUBSTR[%line,%sz,%n]
57 set filename=%@FILENAME[%line2]
58 set dirname=%@PATH[%line2]
59
60 echo Source: %line; DestDir: {app}\%dirname; DestName: %filename >> %TEMP\files2.tmp
61enddo
62
63Rem Concatenate the 3 sections
64cat %wxwindir\distrib\msw\innotop.txt %TEMP\files2.tmp %wxwindir\distrib\msw\innobott.txt > %wxwindir\distrib\msw\wxwin2.iss
65
66erase /Y %TEMP\files1.tmp
67rem erase /Y %TEMP\files2.tmp
68
69goto end
70
71:end