summaryrefslogtreecommitdiff
path: root/scripts/historic/2format
blob: 2e3ca0d48d45a941a09d70c4ed8ba2d290eb3753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

tmp=`tempfile`

while [ x"$1" != x ]; do
  echo $1
  cat $1 \
   | tr -d '\t' \
   | sed -f formatparasect \
   | sed -f para1 \
   | sed '/<\/para>/{:a;N;/<para>/!ba;s/<\/para>\n*<para>/<\/para><para>/;}' \
   | cat -s > $tmp
  cp $tmp $1
  shift;
done

rm -f $tmp

#   | sed -f fix \