summarylogtreecommitdiffstats
path: root/license.awk
diff options
context:
space:
mode:
authorLeonard König2021-03-31 20:01:06 +0200
committerLeonard König2021-03-31 20:01:06 +0200
commit864e5c57be5daeaa895e6aaa9fdf04351f09a770 (patch)
tree5bea3baa84adae601bad56a7301b436bbb709f7c /license.awk
downloadaur-864e5c57be5daeaa895e6aaa9fdf04351f09a770.tar.gz
initial commit
Diffstat (limited to 'license.awk')
-rwxr-xr-xlicense.awk7
1 files changed, 7 insertions, 0 deletions
diff --git a/license.awk b/license.awk
new file mode 100755
index 000000000000..459a4797b10d
--- /dev/null
+++ b/license.awk
@@ -0,0 +1,7 @@
+#! /usr/bin/env -S awk -f
+
+/License Description:.*/ { inlicense = 1;
+ for (i = 3; i <= NF; i++) $(i-2)=$i
+ }
+/Vendor ID:.*/ { inlicense = 0; }
+ { if (inlicense) print $0 }