summaryrefslogtreecommitdiff
path: root/prepare-release
diff options
context:
space:
mode:
authorSteve Langasek <steve.langasek@canonical.com>2012-06-11 22:36:02 +0000
committerSteve Langasek <steve.langasek@canonical.com>2012-06-11 22:36:02 +0000
commitd46dd46d38b162b5e1de1fbbdfa434cc91262b2d (patch)
tree30c0ae6e48829ec6d09fc8189feb3883824ee98c /prepare-release
parentcc68ddf9045d6663dfb4f4fddf6c2b27de7144f6 (diff)
prepare-release: declare the packages needed as source build deps.
Diffstat (limited to 'prepare-release')
-rwxr-xr-xprepare-release4
1 files changed, 4 insertions, 0 deletions
diff --git a/prepare-release b/prepare-release
index 73c0be602..8cf4ccace 100755
--- a/prepare-release
+++ b/prepare-release
@@ -1,11 +1,15 @@
#!/bin/sh
+set -e
+
VERSION=$(dpkg-parsechangelog | sed -n -e '/^Version:/s/^Version: //p')
DISTRIBUTION=$(dpkg-parsechangelog | sed -n -e '/^Distribution:/s/^Distribution: //p')
LIBAPTPKGVERSION="$(awk -v ORS='.' '/^\#define APT_PKG_M/ {print $3}' apt-pkg/init.h | sed 's/\.$//')"
LIBAPTINSTVERSION="$(egrep '^MAJOR=' apt-inst/makefile |cut -d '=' -f 2)"
+dpkg-checkbuilddeps -d 'libxml2-utils'
+
if [ "$1" = 'pre-export' ]; then
libraryversioncheck() {
local LIBRARY="$1"