Consolidate the logic for generating file lists, as well as creating zip archives, into one place and remove some old code no longer needed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -49,11 +49,11 @@ getfilelist(){
|
|||||||
filelist="$filelist $commonfiles"
|
filelist="$filelist $commonfiles"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $port = "msw" || $port = "all" ]; then
|
if [ $port = "msw" ] || [ $port = "all" ]; then
|
||||||
filelist="$filelist msw.rsp univ.rsp vc.rsp mmedia.rsp wince.rsp palmos.rsp"
|
filelist="$filelist msw.rsp univ.rsp vc.rsp mmedia.rsp wince.rsp palmos.rsp dmc.rsp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $port = "os2" || $port = "all" ]; then
|
if [ $port = "os2" ] || [ $port = "all" ]; then
|
||||||
filelist="$filelist os2.rsp"
|
filelist="$filelist os2.rsp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ getfilelist(){
|
|||||||
filelist="$filelist x11.rsp gtk.rsp cocoa.rsp motif.rsp mac.rsp mgl.rsp"
|
filelist="$filelist x11.rsp gtk.rsp cocoa.rsp motif.rsp mac.rsp mgl.rsp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tempfile="/tmp/$portfiles.in"
|
tempfile="/tmp/wx$port.files.in"
|
||||||
rm -f $tempfile
|
rm -f $tempfile
|
||||||
rm -f $outfile
|
rm -f $outfile
|
||||||
|
|
||||||
@@ -323,30 +323,6 @@ dospindocs()
|
|||||||
rearchive wxWidgets-$VERSION-ExtraDoc.zip wxWidgets-$VERSION $DESTDIR
|
rearchive wxWidgets-$VERSION-ExtraDoc.zip wxWidgets-$VERSION $DESTDIR
|
||||||
}
|
}
|
||||||
|
|
||||||
dospinmisc()
|
|
||||||
{
|
|
||||||
cd $APPDIR
|
|
||||||
|
|
||||||
# zip up Univ-specific files
|
|
||||||
echo Creating $DESTDIR/wxWidgets-$VERSION-Univ.zip
|
|
||||||
expandlines $MANIFESTDIR/univ.rsp /tmp/univfiles
|
|
||||||
zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-Univ.zip < /tmp/univfiles
|
|
||||||
rearchive wxWidgets-$VERSION-Univ.zip wxWidgets-$VERSION $DESTDIR
|
|
||||||
|
|
||||||
# DMC project files
|
|
||||||
echo Creating $DESTDIR/wxWidgets-$VERSION-DMC.zip
|
|
||||||
expandlines $MANIFESTDIR/dmc.rsp /tmp/dmcfiles
|
|
||||||
zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-DMC.zip < /tmp/dmcfiles
|
|
||||||
rearchive wxWidgets-$VERSION-DMC.zip wxWidgets-$VERSION $DESTDIR
|
|
||||||
|
|
||||||
# BC++ project files
|
|
||||||
echo Creating $DESTDIR/wxWidgets-$VERSION-BC.zip
|
|
||||||
expandlines $MANIFESTDIR/bc.rsp /tmp/bcfiles
|
|
||||||
zip $ZIPFLAGS -@ $DESTDIR/wxWidgets-$VERSION-BC.zip < /tmp/bcfiles
|
|
||||||
rearchive wxWidgets-$VERSION-BC.zip wxWidgets-$VERSION $DESTDIR
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
dospinport(){
|
dospinport(){
|
||||||
port=$1
|
port=$1
|
||||||
@@ -355,47 +331,34 @@ dospinport(){
|
|||||||
echo "Zipping wx$upperport..."
|
echo "Zipping wx$upperport..."
|
||||||
|
|
||||||
cd $APPDIR
|
cd $APPDIR
|
||||||
getfilelist "$port" "/tmp/$port_filelist"
|
portfiles="/tmp/wx$port.files"
|
||||||
|
getfilelist "$port" "$portfiles"
|
||||||
|
|
||||||
mkdir -p /tmp/wx$port/wxWidgets-$VERSION
|
zip $ZIPFLAGS -@ $DESTDIR/wx$upperport-$VERSION.zip < $portfiles
|
||||||
|
zip $ZIPFLAGS -g $DESTDIR/wx$upperport-$VERSION.zip LICENSE.txt COPYING.LIB CHANGES.txt README.txt
|
||||||
|
|
||||||
for line in `cat /tmp/$port_filelist` ; do
|
if [ $port = "msw" ] || [ $port = "all" ]; then
|
||||||
mkdir -p `dirname $line`
|
zip $ZIPFLAGS -g $DESTDIR/wx$upperport-$VERSION.zip README-MSW.txt INSTALL-MSW.txt
|
||||||
cp -r $line /tmp/wx$port/wxWidgets-$VERSION
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
cd /tmp/wxWidgets-$VERSION
|
if [ $port = "os2" ] || [ $port = "all" ]; then
|
||||||
|
zip $ZIPFLAGS -g $DESTDIR/wx$upperport-$VERSION.zip INSTALL-OS2.txt
|
||||||
echo Copying readme files...
|
fi
|
||||||
cp $APPDIR/docs/msw/readme.txt README-MSW.txt
|
|
||||||
cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt
|
# put all files in a wxWidgets-$VERSION subdir in the zip archive
|
||||||
cp $APPDIR/docs/licence.txt LICENCE.txt
|
rearchive wx$upperport-$VERSION.zip wxWidgets-$VERSION $DESTDIR
|
||||||
cp $APPDIR/docs/lgpl.txt COPYING.LIB
|
|
||||||
cp $APPDIR/docs/changes.txt CHANGES.txt
|
|
||||||
cp $APPDIR/docs/readme.txt README.txt
|
|
||||||
|
|
||||||
zip $ZIPFLAGS -r -@ $DESTDIR/wx$upperport-$VERSION.zip /tmp/wx$port/wxWidgets-$VERSION
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dospininstaller()
|
dospininstaller()
|
||||||
{
|
{
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
|
|
||||||
# Put all archives for transit to Linux in a zip file
|
|
||||||
echo Creating $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip
|
|
||||||
rm -f $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip
|
|
||||||
zip $ZIPFLAGS $DESTDIR/wxWidgets-$VERSION-LinuxTransit.zip wxWidgets-$VERSION-LinuxDocs.zip wxWidgets-$VERSION-DMC.zip
|
|
||||||
|
|
||||||
rm -f -r wxWidgets-$VERSION
|
rm -f -r wxWidgets-$VERSION
|
||||||
|
|
||||||
echo Unzipping the Windows files into wxWidgets-$VERSION
|
echo Unzipping the Windows files into wxWidgets-$VERSION
|
||||||
|
|
||||||
mkdir -p wxWidgets-$VERSION
|
mkdir -p wxWidgets-$VERSION
|
||||||
|
|
||||||
unzip $ZIPFLAGS -o wxWidgets-$VERSION-win.zip -d wxWidgets-$VERSION
|
|
||||||
unzip $ZIPFLAGS -o wxWidgets-$VERSION-DMC.zip -d wxWidgets-$VERSION
|
|
||||||
unzip $ZIPFLAGS -o wxWidgets-$VERSION-BC.zip -d wxWidgets-$VERSION
|
|
||||||
|
|
||||||
unzip $ZIPFLAGS -o wxWidgets-$VERSION-HTMLHelp.zip
|
unzip $ZIPFLAGS -o wxWidgets-$VERSION-HTMLHelp.zip
|
||||||
unzip $ZIPFLAGS -o wxWidgets-$VERSION-ExtraDoc.zip
|
unzip $ZIPFLAGS -o wxWidgets-$VERSION-ExtraDoc.zip
|
||||||
|
|
||||||
@@ -415,13 +378,6 @@ dospininstaller()
|
|||||||
rm -f *.spec
|
rm -f *.spec
|
||||||
rm -f src/gtk/descrip.mms src/motif/descrip.mms
|
rm -f src/gtk/descrip.mms src/motif/descrip.mms
|
||||||
|
|
||||||
echo Copying readme files...
|
|
||||||
cp $APPDIR/docs/msw/readme.txt README-MSW.txt
|
|
||||||
cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt
|
|
||||||
cp $APPDIR/docs/licence.txt LICENCE.txt
|
|
||||||
cp $APPDIR/docs/lgpl.txt COPYING.LIB
|
|
||||||
cp $APPDIR/docs/changes.txt CHANGES.txt
|
|
||||||
cp $APPDIR/docs/readme.txt README.txt
|
|
||||||
|
|
||||||
# Disabled for now - Now cp some binary files to 'bin'
|
# Disabled for now - Now cp some binary files to 'bin'
|
||||||
if [ ! -d bin ]; then
|
if [ ! -d bin ]; then
|
||||||
@@ -523,10 +479,7 @@ dospininstaller()
|
|||||||
# echo Putting all the setup files into a single zip archive
|
# echo Putting all the setup files into a single zip archive
|
||||||
# zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.*
|
# zip wxMSW-$VERSION-setup.zip readme-$VERSION.txt setup*.*
|
||||||
|
|
||||||
rm -f wxWidgets-$VERSION-win.zip
|
|
||||||
rm -f wxWidgets-$VERSION-ExtraDoc.zip
|
rm -f wxWidgets-$VERSION-ExtraDoc.zip
|
||||||
rm -f wxWidgets-$VERSION-DMC.zip
|
|
||||||
rm -f wxWidgets-$VERSION-Univ.zip
|
|
||||||
rm -f wxWidgets-$VERSION-DocSource.zip
|
rm -f wxWidgets-$VERSION-DocSource.zip
|
||||||
rm -f wxWidgets-$VERSION-LinuxDocs.zip
|
rm -f wxWidgets-$VERSION-LinuxDocs.zip
|
||||||
|
|
||||||
@@ -536,10 +489,6 @@ dospininstaller()
|
|||||||
|
|
||||||
makesetup()
|
makesetup()
|
||||||
{
|
{
|
||||||
# if [ -d $SETUPIMAGEDIR ]; then
|
|
||||||
# echo Removing contents of existing $SETUPIMAGEDIR
|
|
||||||
# rm -f -r $SETUPIMAGEDIR/*
|
|
||||||
# fi
|
|
||||||
|
|
||||||
if [ ! -d $SETUPIMAGEDIR ]; then
|
if [ ! -d $SETUPIMAGEDIR ]; then
|
||||||
echo Making the $SETUPIMAGEDIR for preparing the setup
|
echo Making the $SETUPIMAGEDIR for preparing the setup
|
||||||
@@ -607,7 +556,16 @@ makesetup()
|
|||||||
cp $WEBFILES/site/faq*.htm $APPDIR/docs/html
|
cp $WEBFILES/site/faq*.htm $APPDIR/docs/html
|
||||||
cp $WEBFILES/site/platform.htm $APPDIR/docs/html
|
cp $WEBFILES/site/platform.htm $APPDIR/docs/html
|
||||||
cp $WEBFILES/site/i18n.htm $APPDIR/docs/html
|
cp $WEBFILES/site/i18n.htm $APPDIR/docs/html
|
||||||
|
|
||||||
|
echo Copying readme files...
|
||||||
|
cp $APPDIR/docs/msw/readme.txt README-MSW.txt
|
||||||
|
cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt
|
||||||
|
cp $APPDIR/docs/os2/install.txt INSTALL-OS2.txt
|
||||||
|
cp $APPDIR/docs/licence.txt LICENCE.txt
|
||||||
|
cp $APPDIR/docs/lgpl.txt COPYING.LIB
|
||||||
|
cp $APPDIR/docs/changes.txt CHANGES.txt
|
||||||
|
cp $APPDIR/docs/readme.txt README.txt
|
||||||
|
|
||||||
# Copy setup0.h files to setup.h
|
# Copy setup0.h files to setup.h
|
||||||
# OS/2 always built with configure now
|
# OS/2 always built with configure now
|
||||||
# cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h
|
# cp $APPDIR/include/wx/os2/setup0.h $APPDIR/include/wx/os2/setup.h
|
||||||
@@ -619,11 +577,6 @@ makesetup()
|
|||||||
dospinport "os2" #dospinos2
|
dospinport "os2" #dospinos2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do Mac spin
|
|
||||||
if [ "$SPINMAC" = "1" ] || [ "$SPINALL" = "1" ]; then
|
|
||||||
dospinmac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Do MSW spin
|
# Do MSW spin
|
||||||
if [ "$SPINMSW" = "1" ] || [ "$SPINALL" = "1" ]; then
|
if [ "$SPINMSW" = "1" ] || [ "$SPINALL" = "1" ]; then
|
||||||
dospinport "msw" #dospinmsw
|
dospinport "msw" #dospinmsw
|
||||||
@@ -644,9 +597,6 @@ makesetup()
|
|||||||
dospindocs
|
dospindocs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Do misc files spin
|
|
||||||
dospinmisc
|
|
||||||
|
|
||||||
docopydocs $APPDIR $DESTDIR
|
docopydocs $APPDIR $DESTDIR
|
||||||
|
|
||||||
# Time to regenerate the Inno Install script
|
# Time to regenerate the Inno Install script
|
||||||
|
Reference in New Issue
Block a user