Switch to bzip2 for compression

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-06-02 03:43:46 +00:00
parent 3700569251
commit bf158fe6c6
14 changed files with 47 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
README for wxPython-src-2.6.*.tar.gz
====================================
README for wxPython-src-2.6.*.tar.bz2
=====================================
This archive contains the source code and other files for both

View File

@@ -24,14 +24,14 @@ if [ $skipdocs != yes ]; then
# build the doc and demo tarballs
distrib/makedemo
distrib/makedocs
mv dist/wxPython-docs-$VERSION.tar.gz $STAGING_DIR
mv dist/wxPython-demo-$VERSION.tar.gz $STAGING_DIR
mv dist/wxPython-docs-$VERSION.tar.bz2 $STAGING_DIR
mv dist/wxPython-demo-$VERSION.tar.bz2 $STAGING_DIR
# build the new docs too
if [ $skipnewdocs != yes ]; then
docs/bin/everything
mv dist/wxPython-newdocs-$VERSION.tar.gz $STAGING_DIR
mv dist/wxPython-newdocs-$VERSION.tar.bz2 $STAGING_DIR
fi
fi

View File

@@ -23,9 +23,9 @@ if [ $skiposx != yes ]; then
echo "Copying source files and build script..."
ssh root@$host "mkdir -p $OSX_BUILD && rm -rf $OSX_BUILD/* || true"
scp $STAGING_DIR/wxPython-src-$VERSION.tar.gz \
$STAGING_DIR/wxPython-docs-$VERSION.tar.gz \
$STAGING_DIR/wxPython-demo-$VERSION.tar.gz \
scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
$STAGING_DIR/wxPython-docs-$VERSION.tar.bz2 \
$STAGING_DIR/wxPython-demo-$VERSION.tar.bz2 \
distrib/all/do-build-osx \
root@$host:$OSX_BUILD

View File

@@ -18,7 +18,7 @@ if [ $skipwin != yes ]; then
fi
echo "Copying source file and build script..."
scp $STAGING_DIR/wxPython-src-$VERSION.tar.gz \
scp $STAGING_DIR/wxPython-src-$VERSION.tar.bz2 \
distrib/all/do-build-windows \
$WIN_HOST:$WIN_BUILD

View File

@@ -39,10 +39,10 @@ echo "which gcc = " `which gcc`
#exit 0
# untar the source
echo "Unarchiving wxPython-src-$VERSION.tar.gz"
echo "Unarchiving wxPython-src-$VERSION.tar.bz2"
cd $DESTDIR
tar xzf wxPython-src-$VERSION.tar.gz
rm wxPython-src-$VERSION.tar.gz
tar xjf wxPython-src-$VERSION.tar.bz2
rm wxPython-src-$VERSION.tar.bz2
echo "Invoking wxPythonOSX build script..."
@@ -63,8 +63,8 @@ cd $DESTDIR
if [ $SKIPCLEAN != yes ]; then
echo "Cleaning up..."
rm -r $WXDIR || true
rm wxPython-docs-$VERSION.tar.gz
rm wxPython-demo-$VERSION.tar.gz
rm wxPython-docs-$VERSION.tar.bz2
rm wxPython-demo-$VERSION.tar.bz2
fi
echo "-=-=-=- Goodbye! -=-=-=-"

View File

@@ -69,7 +69,7 @@ for dir in SPECS BUILD RPMS SOURCES SRPMS tmp; do
fi
done
cp wxPython-src-$VERSION.tar.gz $rpmtop/SOURCES
cp wxPython-src-$VERSION.tar.bz2 $rpmtop/SOURCES
echo "******************** PYVER = " $PYVER
for ver in $PYVER; do
@@ -93,7 +93,7 @@ if [ $SKIPCLEAN != yes ]; then
rm -rf $rpmtop
echo "Cleaning up..."
rm *.spec *.tar.gz
rm *.spec *.tar.bz2
fi
echo "-=-=-=- Goodbye! -=-=-=-"

View File

@@ -50,10 +50,10 @@ fi
# untar the source
echo "Unarchiving wxPython-src-$VERSION.tar.gz"
echo "Unarchiving wxPython-src-$VERSION.tar.bz2"
cd $DESTDIR
tar xzf wxPython-src-$VERSION.tar.gz
rm wxPython-src-$VERSION.tar.gz
tar xjf wxPython-src-$VERSION.tar.bz2
rm wxPython-src-$VERSION.tar.bz2
# Fix line endings

View File

@@ -134,21 +134,21 @@ if [ -z "$TARBALLDIR" ]; then
# TARBALLDIR before invoking this script...
TARBALLDIR=/stuff/Development/wxPython/dist/$VERSION
fi
TARBALL=$TARBALLDIR/wxPython-src-$VERSION.tar.gz
TARBALL=$TARBALLDIR/wxPython-src-$VERSION.tar.bz2
if [ ! -e $TARBALLDIR/wxPython-demo-$VERSION.tar.gz ]; then
if [ ! -e $TARBALLDIR/wxPython-demo-$VERSION.tar.bz2 ]; then
echo "-------------------------------------------------------"
echo " WARNING: Demo tarball not found, will skip building "
echo " the Demo app bundle and etc."
echo " $TARBALLDIR/wxPython-demo-$VERSION.tar.gz"
echo " $TARBALLDIR/wxPython-demo-$VERSION.tar.bz2"
echo "-------------------------------------------------------"
fi
if [ ! -e $TARBALLDIR/wxPython-docs-$VERSION.tar.gz ]; then
if [ ! -e $TARBALLDIR/wxPython-docs-$VERSION.tar.bz2 ]; then
echo "-------------------------------------------------------"
echo " WARNING: Docs tarball not found, will skip building "
echo " the the wxDocsViewer app bundle and etc."
echo " $TARBALLDIR/wxPython-docs-$VERSION.tar.gz"
echo " $TARBALLDIR/wxPython-docs-$VERSION.tar.bz2"
echo "-------------------------------------------------------"
fi
@@ -201,7 +201,7 @@ pushd $BUILDROOT
if [ $skiptar != yes ]; then
echo Unarchiving tarball...
tar xzf $TARBALL
tar xjf $TARBALL
fi
if [ $inplace = no ]; then
@@ -543,7 +543,7 @@ EOF
# wxDocs
if [ ! -e $TARBALLDIR/wxPython-docs-$VERSION.tar.gz ]; then
if [ ! -e $TARBALLDIR/wxPython-docs-$VERSION.tar.bz2 ]; then
cat > "$DMGAPPS/Docs/Build ERROR.txt" <<EOF
The wxPython-docs tarball was not found when building this disk image!
@@ -552,7 +552,7 @@ EOF
else
pushd $BUILDROOT
tar xzvf $TARBALLDIR/wxPython-docs-$VERSION.tar.gz
tar xjvf $TARBALLDIR/wxPython-docs-$VERSION.tar.bz2
popd
# Make an app to launch viewdocs.py
@@ -585,7 +585,7 @@ EOF
popd
if [ ! -e $TARBALLDIR/wxPython-demo-$VERSION.tar.gz ]; then
if [ ! -e $TARBALLDIR/wxPython-demo-$VERSION.tar.bz2 ]; then
cat > "$DMGAPPS/Samples/Build ERROR.txt" <<EOF
The wxPython-$VERSION-demo tarball was not found when building this disk image!
@@ -597,7 +597,7 @@ EOF
# Copy the demo and samples to the disk image from the tarball
pushd $DMGAPPS/Samples
tar xzvf $TARBALLDIR/wxPython-demo-$VERSION.tar.gz
tar xjvf $TARBALLDIR/wxPython-demo-$VERSION.tar.bz2
mv wxPython-$VERSION/* .
rm -rf wxPython-$VERSION
rm demo/b demo/.setup.sh

View File

@@ -29,7 +29,7 @@ rm -f `find _distrib_tgz/wxPython-$VERSION -name ".#*"`
cd _distrib_tgz
tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION
gzip -9 -f ../dist/wxPython-demo-$VERSION.tar
bzip2 -9 -f ../dist/wxPython-demo-$VERSION.tar
cd ..
rm -r _distrib_tgz

View File

@@ -69,7 +69,7 @@ rm del-dirs
rem *** bundle it all up TODO: don't hard-code the 2.6
tar cvf ../dist/wxPython2.6-win32-devel-%1.tar wxPython-%1
gzip -9 ../dist/wxPython2.6-win32-devel-%1.tar
bzip2 -9 ../dist/wxPython2.6-win32-devel-%1.tar
rem *** cleanup
cd ..

View File

@@ -62,9 +62,9 @@ cp ../distrib/viewdocs.py $DEST
cp ../distrib/README.viewdocs.txt $DEST/README.txt
##cp ../docs/xml/wxPython-metadata.xml $DEST
rm -f ../dist/wxPython-docs-$VERSION.tar.gz
rm -f ../dist/wxPython-docs-$VERSION.tar.bz2
tar cvf ../dist/wxPython-docs-$VERSION.tar wxPython-$VERSION
gzip -9 ../dist/wxPython-docs-$VERSION.tar
bzip2 -9 ../dist/wxPython-docs-$VERSION.tar
# **** Cleanup

View File

@@ -41,7 +41,7 @@ cd ..
rem *** bundle it all up
cd _distrib_zip
tar cvf ../dist/wxPythonWIN32-preview-%1.tar wxPython-%1
gzip -9 ../dist/wxPythonWIN32-preview-%1.tar
bzip2 -9 ../dist/wxPythonWIN32-preview-%1.tar
mv ../dist/wxPythonWIN32-preview-%1.tar.gz ../dist/wxPythonWIN32-preview-%1.tgz
rem *** cleanup

View File

@@ -134,21 +134,14 @@ if [ -z "${skipcopy}" ]; then
# copy root dir contents
cp -pf --link ${wxdir}/* ${tarver} > /dev/null 2>&1
# copy all top dirs except CVS, build, demos, samples, utils, and wxPython
for d in art build contrib debian distrib docs include lib locale misc patches src; do
# copy all top dirs except CVS, demos, samples, and wxPython
for d in art build contrib debian docs include lib locale patches samples src utils; do
if [ -e ${wxdir}/$d ]; then
cp -Rpf --link ${wxdir}/$d ${tarver} #> /dev/null 2>&1
fi
done
# # and tex2rtf too
# mkdir ${tarver}/utils
# cp -Rpf --link ${wxdir}/utils/tex2rtf ${tarver}/utils
# # tex2rtf needs these files
# mkdir ${tarver}/samples
# cp -Rpf --link ${wxdir}/samples/sample.* ${tarver}/samples
# now do the same thing for wxPython, skipping it's build dirs and such
# now do the same thing for wxPython, but use the DIRLIST to select dirs to copy
for dir in `grep -v '#' ${wxdir}/wxPython/distrib/DIRLIST`; do
mkdir ${tarver}/${dir}
##echo "cp -pf --link ${wxdir}/${dir}/* ${tarver}/${dir}"
@@ -172,9 +165,9 @@ if [ -z "${skipcopy}" ]; then
rm *.spec
rm -rf distrib/msw/tmake
rm -rf docs/html
rm -rf docs/latex
rm -rf contrib/docs
rm -rf contrib/samples
#rm -rf docs/latex
#rm -rf contrib/docs
#rm -rf contrib/samples
rm locale/*.mo
cleanup ".#*"
cleanup "#*#"
@@ -191,6 +184,8 @@ if [ -z "${skipcopy}" ]; then
cleanup motif
cleanup os2
cleanup x11
cleanup univ
cleanup wine
rm -f wxPython/wx/* > /dev/null 2>&1
@@ -224,10 +219,10 @@ if [ -z "${skiptar}" ]; then
tar cvf ${distdir}/${tarver}.tar ${tarver} > /dev/null
echo "*** Compressing..."
if [ -e ${distdir}/${tarver}.tar.gz ]; then
rm ${distdir}/${tarver}.tar.gz
if [ -e ${distdir}/${tarver}.tar.bz2 ]; then
rm ${distdir}/${tarver}.tar.bz2
fi
gzip --best ${distdir}/${tarver}.tar
bzip2 --best ${distdir}/${tarver}.tar
popd > /dev/null
fi
@@ -237,7 +232,7 @@ fi
if [ -z "${skiprpm}" ]; then
echo "*** Building RPMs..."
cp ${distdir}/${tarver}.tar.gz ${rpmtop}/SOURCES
cp ${distdir}/${tarver}.tar.bz2 ${rpmtop}/SOURCES
if [ "${srpmonly}" = "1" ]; then
rpmbuild -bs \

View File

@@ -111,7 +111,7 @@ Name: %{pkgname}%{ver2}
Summary: Cross platform GUI toolkit for Python
Version: %{version}
Release: %{release}
Source0: %{tarname}-%{version}.tar.gz
Source0: %{tarname}-%{version}.tar.bz2
License: wx Library Licence, Version 3
URL: http://wxPython.org/
Packager: Robin Dunn <robin@alldunn.com>