]> git.saurik.com Git - wxWidgets.git/blame_incremental - utils/tex2rtf/distrib/makeinno.bat
don't blit too much when copying static box border in OnPaint()
[wxWidgets.git] / utils / tex2rtf / distrib / makeinno.bat
... / ...
CommitLineData
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}\backgrounds
6Rem
7Rem [Files]
8Rem Source: C:\dir\file.htm; DestDir: {app}\; DestName: file.htm
9
10set tex2rtf=%WXWIN%\utils\tex2rtf
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
27echo. >> %temp\files2.tmp
28echo [Dirs] >> %temp\files2.tmp
29
30do i = 0 to %len by 1
31 set line=%@LINE[%TEMP\files1.tmp,%i]
32 Rem Skip files.
33 if not isdir %line enddo
34 set sz2=%@LEN[%line]
35 set n=%@EVAL[%sz2-%sz]
36 set line2=%@SUBSTR[%line,%sz,%n]
37 if "%line2%" == "" enddo
38
39 echo Name: {app}\%line2 >> %TEMP\files2.tmp
40enddo
41
42echo. >>%TEMP\files2.tmp
43
44Rem Add files
45
46echo. >> %temp\files2.tmp
47echo [Files] >> %temp\files2.tmp
48
49do i = 0 to %len by 1
50 set line=%@LINE[%TEMP\files1.tmp,%i]
51 Rem Skip directories.
52 if isdir %line enddo
53 set sz2=%@LEN[%line]
54 set n=%@EVAL[%sz2-%sz]
55 set line2=%@SUBSTR[%line,%sz,%n]
56 set filename=%@FILENAME[%line2]
57 set dirname=%@PATH[%line2]
58
59 echo Source: %line; DestDir: {app}\%dirname; DestName: %filename >> %TEMP\files2.tmp
60enddo
61
62Rem Concatenate the 3 sections
63cat %tex2rtf%\distrib\innotop.txt %TEMP%\files2.tmp %tex2rtf%\distrib\innobott.txt > %tex2rtf%\distrib\tex2rtf.iss
64
65erase /Y %TEMP\files1.tmp
66rem erase /Y %TEMP\files2.tmp
67
68goto end
69
70:end