]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/makewise.sh
mingw32/cygwin compilation fixes
[wxWidgets.git] / distrib / msw / makewise.sh
CommitLineData
73a2995f
JS
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
11wxdir=`cygpath -u $WXWIN`
12tempdir=`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 "./"
16cd $wxdir/deliver/wx
17find . -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
24rm -f $tempdir/files2.tmp
25
26# First add system files
27cat $wxdir/distrib/msw/wisesys.txt > $tempdir/files2.tmp
28
29for 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
1620f478 36 line1=$WXWIN"\\deliver\\wx\\"$line2
73a2995f
JS
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
44done
45
46# Concatenate the 3 sections
47cat $wxdir/distrib/msw/wisetop.txt $tempdir/files2.tmp $wxdir/distrib/msw/wisebott.txt > $wxdir/distrib/msw/wxwin2.wse
48
49rm -f $tempdir/files1.tmp
50
51