[libconfig-model-dpkg-perl] 01/02: add new cme script: update-my-copyright-year
dod at debian.org
dod at debian.org
Sat Apr 8 18:45:38 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 2a29145ee31127122076350eec60c342e291eb52
Author: Dominique Dumont <dod at debian.org>
Date: Thu Apr 6 20:09:39 2017 +0200
add new cme script: update-my-copyright-year
---
lib/Config/Model/scripts/update-my-copyright-year | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lib/Config/Model/scripts/update-my-copyright-year b/lib/Config/Model/scripts/update-my-copyright-year
new file mode 100644
index 0000000..e05dabc
--- /dev/null
+++ b/lib/Config/Model/scripts/update-my-copyright-year
@@ -0,0 +1,11 @@
+doc: update my copyright year
+doc: only copyright of last year is updated
+
+app: dpkg-copyright
+
+var: my @l = localtime; $var{year} = $l[5]+1900; $var{oldyear} = $var{year} - 1
+
+# $oldyear and $year can be overridden by command arguments
+load: Files:~ Copyright=~"s/$oldyear,?\s+$DEBFULLNAME/$year, $DEBFULLNAME/g"
+
+commit: updated copyright year of $DEBFULLNAME
--
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