aboutsummaryrefslogtreecommitdiffstats
path: root/tools/fix_html_date.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/fix_html_date.sh')
-rwxr-xr-xtools/fix_html_date.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/fix_html_date.sh b/tools/fix_html_date.sh
new file mode 100755
index 00000000..c7fbdabe
--- /dev/null
+++ b/tools/fix_html_date.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+#
+# Replace an HTML comment "<!--@DATE@-->" by the current date
+# in the file given by $1 (with $2 as prefix and $3 as suffix)
+#
+# Result on standard output
+
+sed -e "s/<!--@DATE@-->/$2$(date +'%F')$3/g" $1