Summary Files Commits Branches @commit @diff @stats
path: root / generate-hooks / make-file-lists.sh
diff options
context:
space:
mode:
1 files changed, 3 insertions, 7 deletions
-rwxr-xr-xgenerate-hooks/make-file-lists.sh10
diff --git a/generate-hooks/make-file-lists.sh b/generate-hooks/make-file-lists.sh
index e407e19..87d8e61 100755
--- a/generate-hooks/make-file-lists.sh
+++ b/generate-hooks/make-file-lists.sh
@@ -53,12 +53,8 @@ if [ -z "$1" ]; then
exit
fi
+awkloc="$(dirname "$0")/create-file-lists.awk"
+
for file in $1; do
- sed -i 's/&#38;&#38;nos$/<table class="file-list"><tr>/g;
- s/^<p>&#38;&#38;fos$/<details class="file-wrapper"><summary>/g;
- s/^&#38;&#38;fs0$/<\/summary><table class="file-list"><tr>/g;
- s/^&#38;&#38;fs$/<\/tr><tr>/g;
- s/^&#38;&#38;nod<\/p>$/<\/tr><\/table>/g;
- s/^&#38;&#38;fod<\/p>$/<\/tr><\/table><\/details>/g' \
- "$file"
+ awk -f "$awkloc" $file > tmp && mv -f tmp $file
done