1#!/bin/bash
2
3if [ -e doxygen.sh ]; then
4    . doxygen.sh
5fi
6
7rm -fr build/doc
8mkdir -p build/doc/antlr3
9
10for f in __init__ exceptions constants dfa tokens streams recognizers; do
11    sed -e '/begin\[licence\]/,/end\[licence\]/d' antlr3/$f.py \
12      >>build/doc/antlr3.py
13done
14
15touch build/doc/antlr3/__init__.py
16
17cp -f antlr3/tree.py build/doc/antlr3
18cp -f antlr3/treewizard.py build/doc/antlr3
19
20doxygen doxyfile
21