summaryrefslogtreecommitdiff
path: root/scripts/runtohtml.sh
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-05-08 12:03:21 +0200
committerTor Andersson <tor@ghostscript.com>2012-05-08 10:22:41 +0000
commitfb1663c8181639f49387234f8f4abd5df3d7cc5a (patch)
tree6df99dc2084a7845ca16f9e284cd913b136d44fb /scripts/runtohtml.sh
parent79d3afa22e79363dc687d48af56c627c7879d8c8 (diff)
downloadmupdf-fb1663c8181639f49387234f8f4abd5df3d7cc5a.tar.xz
Add scripts to generate hyperlinked source in HTML.
Diffstat (limited to 'scripts/runtohtml.sh')
-rw-r--r--scripts/runtohtml.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/runtohtml.sh b/scripts/runtohtml.sh
new file mode 100644
index 00000000..9b94e22b
--- /dev/null
+++ b/scripts/runtohtml.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+mkdir -p doc/source
+rm doc/source/*.html
+
+FILES="fitz/*.[ch] draw/*.[ch] pdf/*.[ch] xps/*.[ch] cbz/*.[ch] apps/*.[ch]"
+
+echo running ctags to make xref
+ctags -x $FILES > tags-xref
+
+for input in $FILES
+do
+ output=doc/source/$(basename $input).html
+ echo $input $output
+ python scripts/tohtml.py < $input > $output
+done
+
+rm tags-xref