summaryrefslogtreecommitdiffstats
path: root/contrib/release/copyright-lines.awk
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:55:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:55:52 +0000
commitf7a951d79bc895eb2171c2570add9f4899794a10 (patch)
treecc0c7147f472fecbc93add134f5c0e5c1bb72529 /contrib/release/copyright-lines.awk
parentInitial commit. (diff)
downloaddwz-4fb184be49430f1d777ce99c270ed80a487aa8a0.tar.xz
dwz-4fb184be49430f1d777ce99c270ed80a487aa8a0.zip
Adding upstream version 0.15.upstream/0.15upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'contrib/release/copyright-lines.awk')
-rw-r--r--contrib/release/copyright-lines.awk27
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/release/copyright-lines.awk b/contrib/release/copyright-lines.awk
new file mode 100644
index 0000000..b031c50
--- /dev/null
+++ b/contrib/release/copyright-lines.awk
@@ -0,0 +1,27 @@
+BEGIN {
+ start=0
+}
+
+/Copyright \(C\).*[.]/ {
+ print
+ next
+}
+
+/Copyright \(C\)/ {
+ start=1
+ printf $0
+ next
+}
+
+/[.]/ {
+ if (start == 0)
+ next
+ print
+ start=0
+}
+
+// {
+ if (start == 0)
+ next
+ printf $0
+}