]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/scripts/create_archives.sh
include autopackage-related files
[wxWidgets.git] / distrib / scripts / create_archives.sh
index dc3d0277a93a814c9ae5666fd1de96b6f7a90dfb..b07a0640d52ed156e995e89981076368b1a3e897 100755 (executable)
@@ -76,7 +76,7 @@ getfilelist(){
   fi
   
   if [ $port = "all" ]; then
-    filelist="$filelist palmos.rsp docsrc.rsp"
+    filelist="$filelist gtk1.rsp palmos.rsp docsrc.rsp"
   fi
   
   tempfile="/tmp/wx$port.files.in"
@@ -114,11 +114,20 @@ doinit()
 dospinport(){
     port=$1
     
-    if [ $port != "all" ]; then
-        portname="`echo $port|tr '[a-z]' '[A-Z]'`"    
-    else
-        portname="Widgets"
-    fi
+    case "$port" in
+        all)
+            portname="Widgets";;
+        base)
+            portname="Base";;
+        motif)
+            portname="Motif";;
+        mac)
+            portname="Mac";;
+        *)
+            # for all the others (DFB, GTK, MGL, MSW, X11) just use the
+            # upper-case version as they are abbreviations
+            portname=`echo $port | tr '[a-z]' '[A-Z]'`;;
+    esac
     
     echo "Creating wx$portname distribution..."
 
@@ -126,7 +135,7 @@ dospinport(){
     portfiles="/tmp/wx$port.files"
     getfilelist "$port" "$portfiles"
     
-    TMPFILESDIR=/tmp/wx$port/wxWidgets-$VERSION
+    TMPFILESDIR=/tmp/wx$port/wx$portname-$VERSION
     rm -rf $TMPFILESDIR
     mkdir -p $TMPFILESDIR
 
@@ -140,7 +149,7 @@ dospinport(){
     pushd /tmp/wx$port
     # use DOS line endings for text files for MSW archives.
     if [ $port = "msw" ]; then
-        pushd /tmp/wx$port/wxWidgets-$VERSION
+        pushd /tmp/wx$port/wx$portname-$VERSION
         for file in `cat /tmp/textfiles`; do
             unix2dos $file
         done
@@ -149,9 +158,9 @@ dospinport(){
     echo "Creating wx$portname-$VERSION.zip..."
     zip $ZIPFLAGS -r -9 $APPDIR/deliver/wx$portname-$VERSION.zip .
     echo "Creating wx$portname-$VERSION.tar.gz..."
-    tar czf $APPDIR/deliver/wx$portname-$VERSION.tar.gz wxWidgets-$VERSION
+    tar czf $APPDIR/deliver/wx$portname-$VERSION.tar.gz wx$portname-$VERSION
     echo "Creating wx$portname-$VERSION.tar.bz2..."
-    tar ch wxWidgets-$VERSION | bzip2 -f9 > $APPDIR/deliver/wx$portname-$VERSION.tar.bz2
+    tar ch wx$portname-$VERSION | bzip2 -f9 > $APPDIR/deliver/wx$portname-$VERSION.tar.bz2
     popd
     rm -rf /tmp/wx$port
     rm ${portfiles}
@@ -199,7 +208,7 @@ prepareforrelease()
     rm -f docs/html/wxbook.htm docs/html/roadmap.htm
     rm -f -r contrib/docs/latex/ogl
     rm -f src/mingegcs.bat
-    rm -f *.spec
+#    rm -f *.spec
     rm -f src/gtk/descrip.mms src/motif/descrip.mms
     
     # Copy setup0.h files to setup.h