Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / create-file-lists.awk
diff options
context:
space:
mode:
1 files changed, 9 insertions, 0 deletions
-rw-r--r--generate-hooks/create-file-lists.awk9
diff --git a/generate-hooks/create-file-lists.awk b/generate-hooks/create-file-lists.awk
new file mode 100644
index 0000000..c94ad71
--- /dev/null
+++ b/generate-hooks/create-file-lists.awk
@@ -0,0 +1,9 @@
+{
+ gsub(/&#38;&#38;nos/, "<table class=\"file-list\"><tr>")
+ gsub(/^<p>&#38;&#38;fos$/, "<details class=\"file-wrapper\"><summary>")
+ gsub(/^&#38;&#38;fs0$/, "</summary><table class=\"file-list\"><tr>")
+ gsub(/^&#38;&#38;fs$/, "</tr><tr>")
+ gsub(/^&#38;&#38;nod<\/p>$/, "</tr></table>")
+ gsub(/^&#38;&#38;fod<\/p>$/, "</tr></table></details>")
+ print
+}