summarylogtreecommitdiffstats
path: root/extract_license.sed
diff options
context:
space:
mode:
authorEinhard Leichtfuß2018-12-28 04:58:29 +0100
committerEinhard Leichtfuß2018-12-28 05:07:42 +0100
commit1822cd8e28e087c93dd2868a3f786f85c4cc4af9 (patch)
tree06011d3004038702c561036060ceab00a2b41fc6 /extract_license.sed
parent522e62d218262f64d4756630b009ceccd31d63a7 (diff)
downloadaur-1822cd8e28e087c93dd2868a3f786f85c4cc4af9.tar.gz
Extract license from the Dictionary
Instead of downloading it separately.
Diffstat (limited to 'extract_license.sed')
-rwxr-xr-xextract_license.sed13
1 files changed, 13 insertions, 0 deletions
diff --git a/extract_license.sed b/extract_license.sed
new file mode 100755
index 000000000000..0fa0c844c505
--- /dev/null
+++ b/extract_license.sed
@@ -0,0 +1,13 @@
+#!/usr/bin/env -S sed -nEf
+
+/^GNU Free Documentation License$/ {
+ :a
+ p
+ n
+
+ # Stop on next entry.
+ /^\S/ q
+
+ # Continue printing GFDL.
+ b a
+}