[pkg-bacula-commits] [bacula] 02/03: automate version number dependent tasks in debian/rules and debian/bacula-common-db.links.in

Carsten Leonhardt leo at moszumanska.debian.org
Thu Dec 10 17:04:55 UTC 2015


This is an automated email from the git hooks/post-receive script.

leo pushed a commit to branch experimental
in repository bacula.

commit 06f94d464aef5f80183d66aa5a4efb8bef80488d
Author: Carsten Leonhardt <leo at debian.org>
Date:   Thu Dec 10 17:59:57 2015 +0100

    automate version number dependent tasks in
    debian/rules and debian/bacula-common-db.links.in
---
 debian/bacula-common-db.links.in | 4 ++--
 debian/rules                     | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/bacula-common-db.links.in b/debian/bacula-common-db.links.in
index e83e59c..fb95df7 100644
--- a/debian/bacula-common-db.links.in
+++ b/debian/bacula-common-db.links.in
@@ -1,2 +1,2 @@
-usr/lib/bacula/libbaccats-XX_DBLONGNAME_XX.so usr/lib/bacula/libbaccats-7.0.5.so
-usr/lib/bacula/libbaccats-7.0.5.so usr/lib/bacula/libbaccats.so
+usr/lib/bacula/libbaccats-XX_DBLONGNAME_XX.so usr/lib/bacula/libbaccats-XX_VERSION_XX.so
+usr/lib/bacula/libbaccats-XX_VERSION_XX.so usr/lib/bacula/libbaccats.so
diff --git a/debian/rules b/debian/rules
index 63be512..0c6974a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,7 @@ DEB_HOST_ARCH_OS    ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
 DBGPKGS := $(shell sed -n -e 's/Package: \(.*\)-dbg/\1/p' debian/control)
 
 VARIANTS := pgsql mysql sqlite3
+VERSION := $(shell sed -n -e 's/^\#define VERSION.*"\(.*\)"$$/\1/p' src/version.h)
 
 ######################################################################
 
@@ -70,7 +71,7 @@ LONGNAME_sqlite3	= sqlite3
 # args: 1 -- template file
 #       2 -- db type
 define template-subst
-sed -e 's/XX_DB_XX/$(2)/' -e 's/XX_DBLONGNAME_XX/$(LONGNAME_$(2))/' '$(1)' >'$(patsubst %.in,%,$(subst -db.,-$(2).,$(1)))';
+sed -e 's/XX_DB_XX/$(2)/' -e 's/XX_DBLONGNAME_XX/$(LONGNAME_$(2))/' -e 's/XX_VERSION_XX/$(VERSION)/' '$(1)' >'$(patsubst %.in,%,$(subst -db.,-$(2).,$(1)))';
 endef
 
 # Macro for cleanup file generated for specified database from specified template

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bacula/bacula.git



More information about the pkg-bacula-commits mailing list