[packages/adapter: 61/631] - add %changelog only when there was no %changelog before...
glen
glen at pld-linux.org
Mon Sep 12 19:39:34 CEST 2016
commit 1395ea1c5951167d1c2ec20123868a7de8c67690
Author: Sebastian Zagrodzki <sebek at zagrodzki.net>
Date: Mon Jun 26 15:20:42 2000 +0000
- add %changelog only when there was no %changelog before...
Changed files:
adapter.awk -> 1.61
adapter.awk | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 7685cf0..b5fbe9d 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -27,7 +27,7 @@ BEGIN {
# Is 'date' macro already defined?
if (is_there_line("%define date"))
date = 1
-
+
# Load rpm macros
"rpm --eval %_prefix" | getline prefix
"rpm --eval %_bindir" | getline bindir
@@ -232,8 +232,9 @@ script == 1 {
if (date == 0) {
printf "%%define date\t%%(echo `LC_ALL=\"C\"" > changelog_file
print " date +\"%a %b %d %Y\"`)" > changelog_file
+ date = 1
}
- boc--
+ boc = 1
}
if (!/^%[a-z]+$/ || /changelog/)
@@ -347,9 +348,11 @@ END {
print ""
print "%define date\t%(echo `LC_ALL=\"C\" date +\"%a %b %d %Y\"`)"
}
+
+ if (has_changelog == 0)
+ print "%changelog"
if (boc > 0) {
- print "%changelog"
print "* %{date} PLD Team <pld-list at pld.org.pl>"
printf "All persons listed below can be reached at "
print "<cvs_login>@pld.org.pl\n"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list