summaryrefslogtreecommitdiff
path: root/debian/rules
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-10-28 19:13:56 +0100
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-10-28 19:13:56 +0100
commit23d8465817e7bc0d188f36fc2ad14f41ff01c221 (patch)
tree29f65f669e430c701971d946cd6b71c480b3a02a /debian/rules
parent10c9f030e02ccec5c002abc42776f994c124c574 (diff)
refactor the buildsystem to extract library versions from one file,
so it is not needed to change x-files to just increase a version number (because this is far to easy to forget one of the files, which will not result in failures or is bad in general, but is inconsitent.)
Diffstat (limited to 'debian/rules')
-rwxr-xr-xdebian/rules3
1 files changed, 1 insertions, 2 deletions
diff --git a/debian/rules b/debian/rules
index d1b77e172..f69c0cffb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -75,8 +75,7 @@ APT_UTILS=ftparchive sortpkgs extracttemplates
#export DH_VERBOSE=1
# Find the libapt-pkg major version for use in other control files
-export LIBAPTPKG_MAJOR:=$(shell egrep '^MAJOR=' apt-pkg/makefile |cut -d '=' -f 2)
-export LIBAPTINST_MAJOR:=$(shell egrep '^MAJOR=' apt-inst/makefile |cut -d '=' -f 2)
+include buildlib/libversion.mak
# Determine which package we should provide in the control files
LIBAPTPKG_PROVIDE=libapt-pkg-$(LIBAPTPKG_MAJOR)