]> git.saurik.com Git - wxWidgets.git/blame_incremental - distrib/msw/makewise.bat
Added includes needed if not using precompiled headers.
[wxWidgets.git] / distrib / msw / makewise.bat
... / ...
CommitLineData
1@echo off
2Rem Make a WISE Installer distribution list, where each file is represented by
3Rem a section like this:
4Rem
5Rem item: Install File
6Rem Source=d:\wx2\thefile.txt
7Rem Destination=%MAINDIR%\thefile.txt
8Rem Flags=0000000000000010
9Rem end
10
11Rem Generate a list of all files in the distribution.
12dir /BS >& %TEMP\files1.tmp
13
14Rem Now we iterate through the list of files, writing out the middle section of
15Rem the file.
16Rem We have to remove the first part of the path,
17Rem by truncating the start by the size of the current directory.
18
19set sz=%@EVAL[%@LEN[%_CWD]+1]
20set len=%@LINES[%TEMP\files1.tmp]
21
22erase /Y %TEMP\files2.tmp
23
24Rem, first add system files
25cat %WXWIN\distrib\msw\wisesys.txt > %temp\files2.tmp
26
27do 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
41enddo
42
43Rem Concatenate the 3 sections
44cat %WXWIN\distrib\msw\wisetop.txt %TEMP\files2.tmp %WXWIN\distrib\msw\wisebott.txt > %WXWIN\distrib\msw\wxwin2.wse
45
46erase /Y %TEMP\files1.tmp
47rem erase /Y %TEMP\files2.tmp
48
49goto end
50
51:end