]> git.saurik.com Git - wxWidgets.git/commitdiff
*** empty log message ***
authorJulian Smart <julian@anthemion.co.uk>
Fri, 4 May 2001 14:50:17 +0000 (14:50 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 4 May 2001 14:50:17 +0000 (14:50 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

distrib/msw/zipmac.bat
distrib/msw/zipmac.sh [new file with mode: 0644]

index 035b8d977c056a76b0caf48e933915d122a7a0f8..2c849d63b72530b3cd0fab062083621fdc30f798 100755 (executable)
@@ -1,5 +1,6 @@
 @echo off
 Rem Zips up an archive of Mac and generic wxWindows files.
 @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
 
 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
 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%
 
 cd %dest%
diff --git a/distrib/msw/zipmac.sh b/distrib/msw/zipmac.sh
new file mode 100644 (file)
index 0000000..342e197
--- /dev/null
@@ -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.
+