summaryrefslogtreecommitdiff
path: root/bin/update_html
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-12-22 16:57:53 +0000
committerhallgren <hallgren@chalmers.se>2010-12-22 16:57:53 +0000
commit40b84d25e320347e0402d9a86afe3bf384b5d490 (patch)
tree15c3df3acf3db8091615188429dbae894d59c773 /bin/update_html
parent59b36e0e4aa4875d9d5acfe7abf114a680b0aac9 (diff)
Documentation fixes
+ Rename some txt2tags file from .txt to .t2t and remove abandoned .txt files. + Add program update_html that finds all .t2t documents and updates the corresponding .html file. It can be invoked with 'make html'. + Add style to some .html documents
Diffstat (limited to 'bin/update_html')
-rw-r--r--bin/update_html11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/update_html b/bin/update_html
new file mode 100644
index 000000000..75f54b13e
--- /dev/null
+++ b/bin/update_html
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+### This script finds all .t2t (txt2tags) files and updates the corresponding
+### .html file, if it is out-of-date.
+
+find . -name '*.t2t' | while read t2t ; do
+ html="${t2t%.t2t}.html"
+ if [ "$t2t" -nt "$html" ] ; then
+ txt2tags -thtml "$t2t"
+ fi
+done \ No newline at end of file