aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-05-28 07:27:46 +0200
committerSylvain Boulmé <sylvain.boulme@univ-grenoble-alpes.fr>2020-05-28 07:27:46 +0200
commite7fad4516e0e7705480312caa427e838f3321948 (patch)
tree8a56b3e91a9ad3262137d15cca44913b56dbd803 /tools
parenta1358ff333c840ac0ac447d6f55d64cc7d077cc4 (diff)
downloadcompcert-kvx-e7fad4516e0e7705480312caa427e838f3321948.tar.gz
compcert-kvx-e7fad4516e0e7705480312caa427e838f3321948.zip
automatic date in the html index
Diffstat (limited to 'tools')
-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