]> git.saurik.com Git - wxWidgets.git/blobdiff - distrib/scripts/create_archives.sh
Add new animate sample to the distribution (probably more steps from technote #1...
[wxWidgets.git] / distrib / scripts / create_archives.sh
index 3af710e81c8a98ee2821297e9c27a0e052895538..ca00468b28fa30781bc4b6d2756efdb537c32e5a 100755 (executable)
@@ -20,10 +20,10 @@ VERBOSE=0
 ZIPFLAGS=
 
 PROGNAME=$0
 ZIPFLAGS=
 
 PROGNAME=$0
-SCRIPTDIR=$WXWIN/distrib/scripts
+##SCRIPTDIR=$WXWIN/distrib/scripts
 . $SCRIPTDIR/utils.inc
 
 . $SCRIPTDIR/utils.inc
 
-MANIFESTDIR=$SCRIPTDIR/manifests
+MANIFESTDIR=$WXWIN/distrib/scripts/manifests
 WEBFILES=$WXWIN/../wxWebSite
 if [ ! "$CYGPATH" = "" ]; then
   WEBFILES=`$CYGPATH "$WEBFILES"`
 WEBFILES=$WXWIN/../wxWebSite
 if [ ! "$CYGPATH" = "" ]; then
   WEBFILES=`$CYGPATH "$WEBFILES"`
@@ -76,7 +76,7 @@ getfilelist(){
   fi
   
   if [ $port = "all" ]; then
   fi
   
   if [ $port = "all" ]; then
-    filelist="$filelist palmos.rsp"
+    filelist="$filelist gtk1.rsp palmos.rsp docsrc.rsp"
   fi
   
   tempfile="/tmp/wx$port.files.in"
   fi
   
   tempfile="/tmp/wx$port.files.in"
@@ -126,21 +126,21 @@ dospinport(){
     portfiles="/tmp/wx$port.files"
     getfilelist "$port" "$portfiles"
     
     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
 
     copyfilelist $portfiles $APPDIR $TMPFILESDIR
 
     if [ $port = "msw" ]; then
     rm -rf $TMPFILESDIR
     mkdir -p $TMPFILESDIR
 
     copyfilelist $portfiles $APPDIR $TMPFILESDIR
 
     if [ $port = "msw" ]; then
-        FILES=`find . -type f \( -path '*/CVS/*' -prune -o -exec distrib/scripts/is_text.sh {} \; -print \)`
+        FILES=`find . -type f \( -path '*/CVS/*' -prune -o -exec ${SCRIPTDIR}/is_text.sh {} \; -print \)`
         echo "$FILES" > /tmp/textfiles
     fi
 
     pushd /tmp/wx$port
     # use DOS line endings for text files for MSW archives.
     if [ $port = "msw" ]; then
         echo "$FILES" > /tmp/textfiles
     fi
 
     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
         for file in `cat /tmp/textfiles`; do
             unix2dos $file
         done
@@ -149,11 +149,13 @@ dospinport(){
     echo "Creating wx$portname-$VERSION.zip..."
     zip $ZIPFLAGS -r -9 $APPDIR/deliver/wx$portname-$VERSION.zip .
     echo "Creating wx$portname-$VERSION.tar.gz..."
     echo "Creating wx$portname-$VERSION.zip..."
     zip $ZIPFLAGS -r -9 $APPDIR/deliver/wx$portname-$VERSION.zip .
     echo "Creating wx$portname-$VERSION.tar.gz..."
-    tar czvf $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..."
     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
     popd
     rm -rf /tmp/wx$port
+    rm ${portfiles}
+#    rm /tmp/textfiles
 }
 
 prepareforrelease()
 }
 
 prepareforrelease()
@@ -197,7 +199,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 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
     rm -f src/gtk/descrip.mms src/motif/descrip.mms
     
     # Copy setup0.h files to setup.h