set -x
base=disk_action_draft

# cat all document parts into one file
find . \
	-name '[0-9][0-9]_*' \
	-type f \
	-print \
| grep -v .bak \
| sort \
| while read f
do
	echo "<!-- $f -->" 
	cat $f
done > $base.h

# normalise that file (using old pretty-printer script)
# this is to test the pretty-printer code
# that it is re-readable by SP, not just lynx being nice

dtd/p2.py \
 $base.h \
 $base.ht \
 2>&1 | tee fa

 # read the messages
 echo -n "FILE normalised p-r-t-c" ; read junk

# now run the numbering program

./.02_run

 # read the messages
 echo -n "FILE numbered p-r-t-c" ; read junk

 lynx $base.html  

# grep CHECK disk_action_draft.html
# tail disk_action_draft.html
