summaryrefslogtreecommitdiff
path: root/bin/update_html
blob: 75f54b13e0b8626ded2fc5f6ffbbe876f4d1435a (plain)
1
2
3
4
5
6
7
8
9
10
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