opus/doc/ietf/ietf_source.sh
2009-06-09 11:56:59 -04:00

18 lines
No EOL
372 B
Bash
Executable file

#!/bin/sh
mkdir -p xml_source
for i in `ls source/ | grep '\.[ch]$'` Makefile
do
echo "<section anchor=\"$i\" title=\"$i\">" > xml_source/$i
echo '<t>' >> xml_source/$i
echo '<figure><artwork><![CDATA[' >> xml_source/$i
cat source/$i >> xml_source/$i
echo ']]></artwork></figure>' >> xml_source/$i
echo '</t>' >> xml_source/$i
echo '</section>' >> xml_source/$i
done