[packages/adapter: 194/631] - add support for customized changelog section support
glen
glen at pld-linux.org
Mon Sep 12 19:50:43 CEST 2016
commit f6f0c932d1d02787757e554a38834e90ff3d99d6
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Tue Sep 13 10:59:19 2005 +0000
- add support for customized changelog section support
Changed files:
adapter.awk -> 1.185
adapter.awk | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 1e728f9..6e21ef9 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -31,6 +31,11 @@ BEGIN {
removed["CFLAGS"] = 0
removed["CXXFLAGS"] = 0
+ # get cvsaddress for changelog section
+ # using rpm macros as too lazy to add ~/.adapterrc parsing support.
+ "rpm --eval '%{?_cvsmaildomain}%{!?_cvsmaildomain:@pld-linux.org}'" | getline _cvsmaildomain
+ "rpm --eval '%{?_cvsmailfeedback}%{!?_cvsmailfeedback:PLD Team <rpm at cvs.delfi.ee>}'" | getline _cvsmailfeedback
+
# If 1, we are inside of comment block (started with /^#%/)
comment_block = 0
@@ -367,8 +372,8 @@ preamble == 1 {
skip = 0
# There should be some CVS keywords on the first line of %changelog.
if (boc == 3) {
- if (!/PLD Team/)
- print "* %{date} PLD Team <feedback at pld-linux.org>" > changelog_file
+ if ($0 !~ _cvsmailfeedback)
+ print "* %{date} " _cvsmailfeedback > changelog_file
else
skip = 1
boc = 2
@@ -376,7 +381,7 @@ preamble == 1 {
if (boc == 2 && !skip) {
if (!/All persons listed below/) {
printf "All persons listed below can be reached at " > changelog_file
- print "<cvs_login>@pld-linux.org\n" > changelog_file
+ print "<cvs_login>" _cvsmaildomain "\n" > changelog_file
} else
skip = 1
boc = 1
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list