]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/makewise.bat
Removed redundant m_displayed member var from wxGrid
[wxWidgets.git] / distrib / msw / makewise.bat
1 @echo off
2 Rem Make a WISE Installer distribution list, where each file is represented by
3 Rem a section like this:
4 Rem
5 Rem item: Install File
6 Rem Source=d:\wx2\thefile.txt
7 Rem Destination=%MAINDIR%\thefile.txt
8 Rem Flags=0000000000000010
9 Rem end
10
11 Rem Generate a list of all files in the distribution.
12 dir /BS >& %TEMP\files1.tmp
13
14 Rem Now we iterate through the list of files, writing out the middle section of
15 Rem the file.
16 Rem We have to remove the first part of the path,
17 Rem by truncating the start by the size of the current directory.
18
19 set sz=%@EVAL[%@LEN[%_CWD]+1]
20 set len=%@LINES[%TEMP\files1.tmp]
21
22 erase /Y %TEMP\files2.tmp
23
24 Rem, first add system files
25 cat %WXWIN\distrib\msw\wisesys.txt > %temp\files2.tmp
26
27 do i = 0 to %len by 1
28 set line=%@LINE[%TEMP\files1.tmp,%i]
29 Rem Skip directories.
30 if isdir %line enddo
31 set sz2=%@LEN[%line]
32 set n=%@EVAL[%sz2-%sz]
33 set line2=%@SUBSTR[%line,%sz,%n]
34
35 Rem Echo the file section
36 echo item: Install File >> %TEMP\files2.tmp
37 echo Source=%line >> %TEMP\files2.tmp
38 echo Destination=%%MAINDIR%%\%line2 >> %TEMP\files2.tmp
39 echo Flags=0000000000000010 >> %TEMP\files2.tmp
40 echo end >> %TEMP\files2.tmp
41 enddo
42
43 Rem Concatenate the 3 sections
44 cat %WXWIN\distrib\msw\wisetop.txt %TEMP\files2.tmp %WXWIN\distrib\msw\wisebott.txt > %WXWIN\distrib\msw\wxwin2.wse
45
46 erase /Y %TEMP\files1.tmp
47 rem erase /Y %TEMP\files2.tmp
48
49 goto end
50
51 :end