*** empty log message ***

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-05-04 14:50:17 +00:00
parent f2854a2438
commit e42c7b8567
2 changed files with 97 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
@echo off
Rem Zips up an archive of Mac and generic wxWindows files.
Rem Produces wxMac-ver.zip, wxWindows-ver-HTML.zip
set src=%wxwin%
set dest=%src%\deliver
@@ -31,6 +32,7 @@ zip -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\tex2rtf.rsp
zip -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\dialoged.rsp
zip -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\ogl.rsp
zip -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\xml.rsp
Rem zip -u -@ %dest%\wxMac-%version%.zip < %src%\distrib\msw\wx_html.rsp
zip -@ %dest%\wxWindows-%version%-HTML.zip < %src%\distrib\msw\wx_html.rsp
cd %dest%

94
distrib/msw/zipmac.sh Normal file
View File

@@ -0,0 +1,94 @@
#!/bin/sh
# Zip up an external, generic + Windows distribution of wxWindows 2
# Usage: zipmac.sh dest-dir
# (set the WXWIN variable first so it knows where to take the sources from)
if [ "$OS" = "Windows_NT" ]; then
echo NT
CYGPATHPROGW="cygpath -w"
CYGPATHPROGU="cygpath -u"
else
echo Not NT
CYGPATHPROGW=echo
CYGPATHPROGU=echo
fi
SRC=`$CYGPATHPROGU $WXWIN`
DEST=$1
# Set this to the required version
VERSION=2.3.0
expandlines()
{
toexpand=$1
outputfile=$2
rm -f $outputfile
touch $outputfile
for line in `cat $toexpand` ; do
if [ $line != "" ]; then
ls $line >> $outputfile
fi
done
}
if [ ! -d "$SRC" ]; then
echo $SRC not found.
exit 1
fi
if [ ! -d "$DEST" ]; then
echo $DEST not found.
exit 1
fi
echo Creating distribution in $DEST. Press return to continue.
read dummy
# Remove all existing files
rm -f $DEST/wx*.zip
if [ ! -d "$DEST/wx" ]; then
rm -f -r $DEST/wx
fi
cd $SRC
echo Zipping...
expandlines $SRC/distrib/msw/generic.rsp temp.txt
zip -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/mac.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/cw.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/tiff.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/jpeg.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/tex2rtf.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/dialoged.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/ogl.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/xml.rsp temp.txt
zip -u -@ `$CYGPATHPROGW $DEST/wxMac-$VERSION.zip` < temp.txt
expandlines $SRC/distrib/msw/wx_html.rsp temp.txt
zip -@ `$CYGPATHPROGW $DEST/wxWindows-$VERSION-HTML.zip` < temp.txt
rm -f temp.txt
echo wxWindows archived.