include wxUniv files into wxX11 distribution

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-12-19 08:29:37 +00:00
parent f84a986cfc
commit e019c6429d

View File

@@ -37,56 +37,56 @@ fi
getfilelist(){ getfilelist(){
port=$1 port=$1
outfile=$2 outfile=$2
filelist="base.rsp" filelist="base.rsp"
contribfiles="stc.rsp contrib.rsp ogl.rsp" contribfiles="stc.rsp contrib.rsp ogl.rsp"
utilsfiles="tex2rtf.rsp utils.rsp utilmake.rsp" utilsfiles="tex2rtf.rsp utils.rsp utilmake.rsp"
commonfiles="generic.rsp jpeg.rsp tiff.rsp xml.rsp deprecated.rsp makefile.rsp $utilsfiles $contribfiles" commonfiles="generic.rsp jpeg.rsp tiff.rsp xml.rsp deprecated.rsp makefile.rsp $utilsfiles $contribfiles"
if [ ! $port = "base" ]; then if [ ! $port = "base" ]; then
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 dmc.rsp" filelist="$filelist msw.rsp univ.rsp vc.rsp mmedia.rsp wince.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
if [ $port = "x11" ] || [ $port = "all" ]; then if [ $port = "x11" ] || [ $port = "all" ]; then
filelist="$filelist x11.rsp" filelist="$filelist univ.rsp x11.rsp"
fi fi
if [ $port = "mgl" ] || [ $port = "all" ]; then if [ $port = "mgl" ] || [ $port = "all" ]; then
filelist="$filelist mgl.rsp" filelist="$filelist mgl.rsp"
fi fi
if [ $port = "gtk" ] || [ $port = "all" ]; then if [ $port = "gtk" ] || [ $port = "all" ]; then
filelist="$filelist gtk.rsp" filelist="$filelist gtk.rsp"
fi fi
if [ $port = "motif" ] || [ $port = "all" ]; then if [ $port = "motif" ] || [ $port = "all" ]; then
filelist="$filelist motif.rsp" filelist="$filelist motif.rsp"
fi fi
if [ $port = "mac" ] || [ $port = "all" ]; then if [ $port = "mac" ] || [ $port = "all" ]; then
filelist="$filelist mac.rsp cocoa.rsp" filelist="$filelist mac.rsp cocoa.rsp"
fi fi
if [ $port = "all" ]; then if [ $port = "all" ]; then
filelist="$filelist gtk1.rsp palmos.rsp docsrc.rsp" filelist="$filelist gtk1.rsp palmos.rsp docsrc.rsp"
fi fi
tempfile="/tmp/wx$port.files.in" tempfile="/tmp/wx$port.files.in"
rm -f $outfile rm -f $outfile
olddir=$PWD olddir=$PWD
cd $MANIFESTDIR cd $MANIFESTDIR
cat $filelist > $outfile cat $filelist > $outfile
cd $olddir cd $olddir
} }
@@ -94,12 +94,12 @@ copyfilelist(){
FILELIST=$1 FILELIST=$1
APPDIR=$2 APPDIR=$2
DESTDIR=$3 DESTDIR=$3
for line in `cat $FILELIST` ; do for line in `cat $FILELIST` ; do
if [ "$line" != "" ]; then if [ "$line" != "" ]; then
subdir=`dirname $line` subdir=`dirname $line`
mkdir -p $DESTDIR/$subdir mkdir -p $DESTDIR/$subdir
cp -rf $APPDIR/$line $DESTDIR/$subdir cp -rf $APPDIR/$line $DESTDIR/$subdir
fi fi
done done
} }
@@ -113,7 +113,7 @@ doinit()
dospinport(){ dospinport(){
port=$1 port=$1
case "$port" in case "$port" in
all) all)
portname="Widgets";; portname="Widgets";;
@@ -128,13 +128,13 @@ dospinport(){
# upper-case version as they are abbreviations # upper-case version as they are abbreviations
portname=`echo $port | tr '[a-z]' '[A-Z]'`;; portname=`echo $port | tr '[a-z]' '[A-Z]'`;;
esac esac
echo "Creating wx$portname distribution..." echo "Creating wx$portname distribution..."
cd $APPDIR cd $APPDIR
portfiles="/tmp/wx$port.files" portfiles="/tmp/wx$port.files"
getfilelist "$port" "$portfiles" getfilelist "$port" "$portfiles"
TMPFILESDIR=/tmp/wx$port/wx$portname-$VERSION TMPFILESDIR=/tmp/wx$port/wx$portname-$VERSION
rm -rf $TMPFILESDIR rm -rf $TMPFILESDIR
mkdir -p $TMPFILESDIR mkdir -p $TMPFILESDIR
@@ -174,7 +174,7 @@ prepareforrelease()
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... echo Copying readme files...
cp $APPDIR/docs/msw/readme.txt README-MSW.txt cp $APPDIR/docs/msw/readme.txt README-MSW.txt
cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt cp $APPDIR/docs/msw/install.txt INSTALL-MSW.txt
@@ -201,7 +201,7 @@ prepareforrelease()
cp $APPDIR/docs/cocoa/readme.txt $APPDIR/readme-cocoa.txt cp $APPDIR/docs/cocoa/readme.txt $APPDIR/readme-cocoa.txt
cp $APPDIR/docs/cocoa/install.txt $APPDIR/install-cocoa.txt cp $APPDIR/docs/cocoa/install.txt $APPDIR/install-cocoa.txt
# Now delete a few files that are unnecessary # Now delete a few files that are unnecessary
rm -f BuildCVS.txt descrip.mms rm -f BuildCVS.txt descrip.mms
rm -f setup.h_vms rm -f setup.h_vms
@@ -210,16 +210,16 @@ prepareforrelease()
rm -f src/mingegcs.bat rm -f src/mingegcs.bat
# 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
# 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
cp $APPDIR/include/wx/msw/setup0.h $APPDIR/include/wx/msw/setup.h cp $APPDIR/include/wx/msw/setup0.h $APPDIR/include/wx/msw/setup.h
cp $APPDIR/include/wx/univ/setup0.h $APPDIR/include/wx/univ/setup.h cp $APPDIR/include/wx/univ/setup0.h $APPDIR/include/wx/univ/setup.h
# Make MSW project files always have DOS line endings. # Make MSW project files always have DOS line endings.
unix2dos `cat $MANIFESTDIR/vc.rsp` unix2dos `cat $MANIFESTDIR/vc.rsp`
popd popd
} }
@@ -280,7 +280,7 @@ fi
# Do wxAll spin # Do wxAll spin
if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then if [ "$SPINWXALL" = "1" ] || [ "$SPINALL" = "1" ]; then
dospinport "all" dospinport "all"
fi fi
if [ "$SPINALL" = "1" ]; then if [ "$SPINALL" = "1" ]; then