summaryrefslogtreecommitdiff
path: root/doc/txt2html.sh
blob: 801541e958bb06d298db083efe35836fe08f6659 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

FILES="darcs.txt transfer-reference.txt transfer-tutorial.txt \
      transfer.txt"

for f in $FILES; do
  h=`basename "$f" ".txt"`.html
  if [ "$f" -nt "$h" ]; then 
    txt2tags $f
  else
    echo "$h is newer than $f, skipping"
  fi
done