]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/makewise.sh
fix for non-US keyboards: the ASCII chars must be unsigned
[wxWidgets.git] / distrib / msw / makewise.sh
1 #! /bin/sh
2 # Make a WISE Installer distribution list, where each file is represented by
3 # a section like this:
4 #
5 # item: Install File
6 # Source=d:\wx2\thefile.txt
7 # Destination=%MAINDIR%\thefile.txt
8 # Flags=0000000000000010
9 # end
10
11 wxdir=`cygpath -u $WXWIN`
12 tempdir=`cygpath -u $TEMP`
13
14 # Generate a list of all files in the distribution.
15 # We pass the output through sed in order to remove the preceding "./"
16 cd $wxdir/deliver/wx
17 find . -print | sed -e "s/\.\\///g" > $tempdir/files1.tmp
18
19 # Now we iterate through the list of files, writing out the middle section of
20 # the file.
21 # We have to remove the first part of the path,
22 # by truncating the start by the size of the current directory.
23
24 rm -f $tempdir/files2.tmp
25
26 # First add system files
27 cat $wxdir/distrib/msw/wisesys.txt > $tempdir/files2.tmp
28
29 for line in `cat $tempdir/files1.tmp` ; do
30
31 # If not a directory, add to file
32 if [ ! -d $line ] ; then
33 # The relative path
34 line2=`cygpath -w $line`
35 # The absolute path
36 line1=$WXWIN"\\deliver\\wx\\"$line2
37
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
43 fi
44 done
45
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
48
49 rm -f $tempdir/files1.tmp
50
51