From: Julian Smart Date: Fri, 4 May 2001 14:50:17 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/e42c7b856732d0f7c3a209a42c269c613d40578a *** empty log message *** git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/distrib/msw/zipmac.bat b/distrib/msw/zipmac.bat index 035b8d977c..2c849d63b7 100755 --- a/distrib/msw/zipmac.bat +++ b/distrib/msw/zipmac.bat @@ -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% diff --git a/distrib/msw/zipmac.sh b/distrib/msw/zipmac.sh new file mode 100644 index 0000000000..342e1979db --- /dev/null +++ b/distrib/msw/zipmac.sh @@ -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. +