~jconti/recent-notifications/trunk

« back to all changes in this revision

Viewing changes to build-package.sh

  • Committer: Jason Conti
  • Date: 2010-08-06 21:48:41 UTC
  • Revision ID: jason.conti@gmail.com-20100806214841-96x68o10xgdcmzwd
Cleaned up lintian warnings when building a package and adding code to build packages for maverick.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
VERSION=`python -c "from recent_notifications.Globals import VERSION; print VERSION"`
4
4
NAME="recent-notifications-${VERSION}"
5
5
SDIST="${NAME}.tar.gz"
6
 
ORIG="${NAME}.orig.tar.gz"
 
6
ORIG="recent-notifications_${VERSION}.orig.tar.gz"
7
7
 
8
8
# Get command line arguments
9
9
BUILD_BINARY=0
48
48
echo "Building source distribution for ${SDIST}"
49
49
python setup.py sdist
50
50
rm "MANIFEST"
51
 
cp "dist/${SDIST}" "dist/deb/${ORIG}"
52
 
cd "dist/deb"
 
51
cd "dist"
 
52
tar xzf "${SDIST}"
 
53
rm -rf "${NAME}/debian"
 
54
tar czf "deb/${ORIG}" "${NAME}"
 
55
cd "deb"
53
56
 
54
57
echo "Unpacking source distribution in deb directory"
55
 
tar xzf "${ORIG}"
 
58
tar xzf "../${SDIST}"
56
59
cd "${NAME}"
57
60
 
 
61
export DEBUILD_LINTIAN=yes
 
62
export DEBUILD_LINTIAN_OPTS="-i -I --show-overrides"
 
63
 
58
64
echo "Building deb package"
59
65
if [ "${BUILD_BINARY}" -eq "1" ]
60
66
then
61
67
  dpkg-buildpackage -us -uc
62
68
else
63
 
  # Build the karmic source package
64
 
  dpkg-buildpackage -S
 
69
  # Build the lucid source package
 
70
  #dpkg-buildpackage -S
 
71
  debuild -S -sa
65
72
  # Update the changelog for lucid
66
 
  #sed -i -e 's/karmic/lucid/g' debian/changelog
67
 
  # Build the lucid source package
 
73
  sed -i -e 's/lucid/maverick/g' debian/changelog
 
74
  # Build the maverick source package
68
75
  #dpkg-buildpackage -S
 
76
  debuild -S -sa
69
77
fi