*** empty log message ***
[m17n/m17n-docs.git] / utils / dbformat.sh
index 1a4b108..7376bd5 100755 (executable)
@@ -3,14 +3,20 @@
 cat <<EOF
 /***en @page m17nDBFormat Data format of the m17n database
 
-This section describes the data formats of the m17n database. */
+This section describes formats of these data supplied by the m17n
+database.
 
+<ul>
 EOF
 
-sed -n -e '/\/\*\*\*/,/\*\// p' | \
-sed -e 's/@section/@subsection/' \
-    -e 's/@page/@section/'
+cat $* | grep '@page' | sed -e 's/@page mdb\([^ ]*\)/<li> @ref mdb\1 "\1" --/'
 
 cat <<EOF
-////
+</ul>
+*/
 EOF
+
+cat $* | \
+sed -n -e '/\/\*\*\*/,/\*\// p' | \
+sed -e 's/@section/@subsection/' \
+    -e 's/@page/@section/'