]>
git.saurik.com Git - wxWidgets.git/blob - distrib/msw/makewise.sh
2 # Make a WISE Installer distribution list, where each file is represented by
6 # Source=d:\wx2\thefile.txt
7 # Destination=%MAINDIR%\thefile.txt
8 # Flags=0000000000000010
11 wxdir
=`cygpath -u $WXWIN`
12 tempdir
=`cygpath -u $TEMP`
14 # Generate a list of all files in the distribution.
15 # We pass the output through sed in order to remove the preceding "./"
17 find .
-print | sed -e "s/\.\\///g" > $tempdir/files1.tmp
19 # Now we iterate through the list of files, writing out the middle section of
21 # We have to remove the first part of the path,
22 # by truncating the start by the size of the current directory.
24 rm -f $tempdir/files2.tmp
26 # First add system files
27 cat $wxdir/distrib
/msw
/wisesys.txt
> $tempdir/files2.tmp
29 for line
in `cat $tempdir/files1.tmp` ; do
31 # If not a directory, add to file
32 if [ ! -d $line ] ; then
34 line2
=`cygpath -w $line`
36 line1
=$WXWIN"\\deliver\\wx\\"$line2
38 echo "item: Install File " >> $tempdir/files2.tmp
39 echo " Source=$line1 " >> $tempdir/files2.tmp
40 echo " Destination=%MAINDIR%\\"$line2 >> $tempdir/files2.tmp
41 echo " Flags=0000000000000010" >> $tempdir/files2.tmp
42 echo "end" >> $tempdir/files2.tmp
46 # Concatenate the 3 sections
47 cat $wxdir/distrib
/msw
/wisetop.txt
$tempdir/files2.tmp
$wxdir/distrib
/msw
/wisebott.txt
> $wxdir/distrib
/msw
/wxwin2.wse
49 rm -f $tempdir/files1.tmp