[packages/adapter: 25/631] version 0.14 - fixed problems with empty %changelog
glen
glen at pld-linux.org
Mon Sep 12 19:36:33 CEST 2016
commit 48c6019cd8456c5141b41a9d1f8a218697d48eab
Author: kura <kura at pld-linux.org>
Date: Tue Mar 21 23:29:19 2000 +0000
version 0.14
- fixed problems with empty %changelog
Changed files:
adapter.awk -> 1.25
adapter.awk | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
---
diff --git a/adapter.awk b/adapter.awk
index 46db8f0..fba83f8 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1,6 +1,6 @@
#!/bin/awk -f
#
-# This is adapter v0.13. Adapter adapts .spec files for PLD.
+# This is adapter v0.14. Adapter adapts .spec files for PLD.
# Copyright (C) 1999 Micha� Kuratczyk <kura at pld.org.pl>
BEGIN {
@@ -182,7 +182,7 @@ defattr == 1 {
boc--
}
- if (!/^%[a-z]+$/ || /%changelog/)
+ if (!/^%[a-z]+$/ || /changelog/)
print > changelog_file
else
print
@@ -275,21 +275,19 @@ preamble == 1 {
}
END {
- if (changelog_file)
+ if (changelog_file) {
close(changelog_file)
-
+ while ((getline < changelog_file) > 0)
+ print
+ system("rm -f " changelog_file)
+ }
+
if (boc == 1) {
print "* %{date} PLD Team <pld-list at pld.org.pl>"
printf "All below listed persons can be reached on "
print "<cvs_login>@pld.org.pl\n"
print "$" "Log:$"
- } else {
- while ((getline < changelog_file) > 0)
- print
}
-
- if (changelog_file)
- system("rm -f " changelog_file)
}
# This function uses grep to determine if there is line (in the current file)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885
More information about the pld-cvs-commit
mailing list