~ubuntu-branches/ubuntu/maverick/wxwidgets2.8/maverick-proposed

« back to all changes in this revision

Viewing changes to wxPython/distrib/make_demo_tarball

  • Committer: Bazaar Package Importer
  • Author(s): Devid Filoni
  • Date: 2007-11-06 18:25:13 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071106182513-809agqds6igh7mqo
Tags: 2.8.6.1-0ubuntu1
* New upstream version, based on the upstream tarball
  wxPython-src-2.8.6.1.tar.bz2, renamed debian to debian-upstream.
* Provide a get-orig-source target to do the repackaging.
* Fix "substvar-source-version-is-deprecated" lintian warnings.
* Remove duplicate Description field in debian/control.
* Add "\" at the end of line 8 in debian/python-wxtools.menu to fix
  "bad-test-in-menu-item" lintian error.
* Provide .xpm icons to fix "menu-icon-not-in-xpm-format" lintian errors,
  changed Icon field in debian/python-wxtools.menu.
* Fix "wrong-name-for-upstream-changelog" lintian warnings.
* Remove "Application;" from Categories field in debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Switch "Apps" to "Applications" in debian/python-wxtools.menu to fix
  "menu-item-uses-apps-section" lintian warnings.
* Drop the icon extension from debian/pycrust.desktop,
  debian/pyshell.desktop, debian/xrced.desktop.
* Add dpatch support.
* Add "WX_CONFIG" patch.
* debian/rules:
  - added .xpm icons to install-gtk-py-tools target
  - added "docs/changes.txt" to dh_installchangelogs in binary-common target
  - added "\" at the end of "install-examples install-msw-dev
    install-msw-dbg install-headers-msw" line in .PHONY

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
#----------------------------------------------------------------------
 
3
 
 
4
if [ ! -d wxPython ]; then
 
5
    echo "Please run this script from the root wxPython directory."
 
6
    exit 1
 
7
fi
 
8
 
 
9
VERSION=`python -c "import setup;print setup.VERSION"`
 
10
BUILD=_build_
 
11
 
 
12
mkdir -p $BUILD
 
13
mkdir $BUILD/wxPython-$VERSION
 
14
 
 
15
cp -R demo $BUILD/wxPython-$VERSION
 
16
cp -R samples $BUILD/wxPython-$VERSION
 
17
 
 
18
# do some cleanup
 
19
rm -rf `find $BUILD/wxPython-$VERSION -name CVS`
 
20
rm -rf `find $BUILD/wxPython-$VERSION -name .svn`
 
21
rm -f `find  $BUILD/wxPython-$VERSION -name "*.pyc"`
 
22
rm -f `find  $BUILD/wxPython-$VERSION -name "*.pyo"`
 
23
rm -f `find  $BUILD/wxPython-$VERSION -name ".setup*"`
 
24
rm -f `find  $BUILD/wxPython-$VERSION -name .cvsignore`
 
25
rm -f `find  $BUILD/wxPython-$VERSION -name "core.[0-9]*"`
 
26
rm -f `find  $BUILD/wxPython-$VERSION -name "core"`
 
27
rm -f `find  $BUILD/wxPython-$VERSION -name wxPython`
 
28
rm -f `find  $BUILD/wxPython-$VERSION -name "*.o"`
 
29
rm -f `find  $BUILD/wxPython-$VERSION -name "*.so"`
 
30
rm -f `find  $BUILD/wxPython-$VERSION -name "*~"`
 
31
rm -f `find  $BUILD/wxPython-$VERSION -name ".#*"`
 
32
rm -f `find  $BUILD/wxPython-$VERSION -name "b"`
 
33
 
 
34
cd $BUILD
 
35
 
 
36
tar cvf ../dist/wxPython-demo-$VERSION.tar wxPython-$VERSION
 
37
bzip2 -9 -f ../dist/wxPython-demo-$VERSION.tar
 
38
 
 
39
cd ..
 
40
rm -r $BUILD
 
41
 
 
42
 
 
43
 
 
44