replace ::cast_dynamic() with relevant ActionManager::get_*_action() calls
[ardour.git] / tools / update_luadoc.sh
1 #!/bin/sh
2 ## ardour needs to be configured with  --luadoc and build should be up-to date.
3
4 AMANUAL=$HOME/src/ardour-manual
5
6 cd `dirname $0`
7 DIR=`pwd`
8 set -e
9 test -f ../libs/ardour/ardour/ardour.h
10 test -e ../gtk2_ardour/arluadoc
11 test -e ../build/gtk2_ardour/luadoc
12
13 # generate ../doc/ardourapi.json.gz
14 if test -z "$1"; then
15         ./doxy2json/ardourdoc.sh
16 fi
17
18 # generate ../doc/luadoc.json.gz
19 $DIR/../gtk2_ardour/arluadoc
20
21 if test -f $AMANUAL/include/class-reference.html; then
22         php $DIR/fmt-luadoc.php -m > $AMANUAL/include/class-reference.html
23         ls -l $AMANUAL/include/class-reference.html
24         cd $AMANUAL/
25         ./build.py
26 else
27         php $DIR/fmt-luadoc.php > /tmp/luadoc.html
28         ls -l /tmp/luadoc.html
29 fi