[libconfig-model-dpkg-perl] 05/06: add script bump-dependency-version

dod at debian.org dod at debian.org
Sat May 20 18:04:39 UTC 2017


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

dod pushed a commit to branch master
in repository libconfig-model-dpkg-perl.

commit 253a63de2fe7b20ce405b4737e0cd75266690329
Author: Dominique Dumont <dod at debian.org>
Date:   Wed May 17 20:54:13 2017 +0200

    add script bump-dependency-version
---
 lib/Config/Model/scripts/bump-dependency-version | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/Config/Model/scripts/bump-dependency-version b/lib/Config/Model/scripts/bump-dependency-version
new file mode 100644
index 0000000..bc25a7b
--- /dev/null
+++ b/lib/Config/Model/scripts/bump-dependency-version
@@ -0,0 +1,13 @@
+doc: update required version of a dependency and commit the change
+doc: parameters: pkg, version
+doc: example: cme run bump-dependency-version -arg pkg=libconfig-model-perl -arg version=2.101
+
+app: dpkg-control
+
+var: $var{change_it} = "s/$args{pkg}\\b.*/$args{pkg} (>= $args{version})/"  ;
+
+load: ! source Build-Depends:=~"$change_it"
+load: ! source Build-Depends-Indep:=~"$change_it"
+load: ! binary:~ Depends:=~"$change_it"
+
+commit: control: depends on $pkg >= $version

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libconfig-model-dpkg-perl.git



More information about the Pkg-perl-cvs-commits mailing list