* ChangeLog: replace symlink with URLs to pertinent changelog information

* debian/rules: fix get-orig-source target, such that .bzr and debian
  directories are not shipped as part of the upstream release tarball
* debian/release-build.sh: perform some rudimentary checks for recurring
  issues with release tarballs
This commit is contained in:
Dustin Kirkland 2010-01-18 11:03:39 +13:00
commit 2fac004b04
4 changed files with 23 additions and 3 deletions

View file

@ -1 +0,0 @@
debian/changelog

6
debian/changelog vendored
View file

@ -1,6 +1,10 @@
byobu (2.49) unreleased; urgency=low
* UNRELEASED
* ChangeLog: replace symlink with URLs to pertinent changelog information
* debian/rules: fix get-orig-source target, such that .bzr and debian
directories are not shipped as part of the upstream release tarball
* debian/release-build.sh: perform some rudimentary checks for recurring
issues with release tarballs
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Jan 2010 09:54:58 +1300

View file

@ -10,6 +10,15 @@ error() {
head -n1 debian/changelog | grep "unreleased" || error "This version must be 'unreleased'"
./debian/rules get-orig-source
if tar -tvf ../byobu_*.orig.tar.gz | egrep "bzr|debian"; then
echo "ERROR: release tarball has invalid files"
exit 1
fi
if tar -tvf ../byobu_*.orig.tar.gz | egrep "/bin/|/lib/" | grep -v "rwxr-xr-x"; then
echo "ERROR: release tarball has binaries with incorrect permissions"
exit 1
fi
bzr bd
sed -i "s/) unreleased;/-0ubuntu1~ppa1) hardy;/" debian/changelog
bzr bd -S

10
debian/rules vendored
View file

@ -9,7 +9,15 @@ VER=`head -n 1 debian/changelog | sed 's/^.*(//' | sed 's/).*//' | sed 's/-.*//'
get-orig-source:
dh_testdir
bzr export ../${PKG}_${VER}.orig.tar.gz
# bzr export needs a --exclude option for the following to work:
#bzr export ../${PKG}_${VER}.orig.tar.gz
# use tar instead
mkdir -p ../tmp
rm -rf ../tmp/*
cp -a ${PWD} ../tmp/${PKG}-${VER}
tar -C ../tmp --exclude .bzr --exclude debian -zcvf ../${PKG}_${VER}.orig.tar.gz ${PKG}-${VER}
rm -rf ../tmp
ls -halF ../${PKG}_${VER}.orig.tar.gz
install-po: update-pot
for po in po/*.po ; do \