summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-02-02 16:21:29 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-02-02 16:21:29 +0100
commit68673966c0fb8b9563b1521f08f1baeaa6d17b6e (patch)
treedb689534f57cc9be15e75eda6573dbe755056d79 /debian/rules
parentdcd76a77e84c98cac04bebceac449b938e853848 (diff)
downloadpython-apt-68673966c0fb8b9563b1521f08f1baeaa6d17b6e.tar.gz
* debian/rules: re-added arch-build
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules11
1 files changed, 11 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules
index 6367c02f..32845c7a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,3 +6,14 @@ DEB_PYTHON_SYSTEM=pycentral
# Add here any variable or target overrides you need
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk
+
+PKG=gdebi
+DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
+DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
+
+arch-build::
+ rm -rf debian/arch-build
+ mkdir -p debian/arch-build/$(PKG)-$(DEBVER)
+ tar -c --exclude=arch-build --no-recursion -f - `bzr inventory` | (cd debian/arch-build/$(PKG)-$(DEBVER);tar xf -)
+ (cd debian/arch-build/$(PKG)-$(DEBVER) && $(DEB_BUILD_PROG))
+