summarylogtreecommitdiffstats
path: root/license.awk
diff options
context:
space:
mode:
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 }