18 lines
450 B
Bash
Executable file
18 lines
450 B
Bash
Executable file
#!/bin/sh
|
|
|
|
mkdir -p source
|
|
|
|
for i in `ls ../../libcelt | grep '\.[ch]$'`
|
|
do
|
|
|
|
#cat ../../libcelt/$i | sed -e 's/\&/\&/g' -e 's/</\</g' -e 's/^/<t>/' -e 's/$/<\/t>/' > source/$i
|
|
|
|
echo "<section anchor=\"$i\" title=\"$i\">" > source/$i
|
|
echo '<t>' >> source/$i
|
|
echo '<figure><artwork><![CDATA[' >> source/$i
|
|
cat ../../libcelt/$i >> source/$i
|
|
echo ']]></artwork></figure>' >> source/$i
|
|
echo '</t>' >> source/$i
|
|
echo '</section>' >> source/$i
|
|
|
|
done
|