Include session-utils with OSX bundles
[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 cd `dirname $0`
5 DIR=`pwd`
6 set -e
7 test -f ../libs/ardour/ardour/ardour.h
8 test -e ../gtk2_ardour/arluadoc
9 test -e ../build/gtk2_ardour/luadoc
10
11 # generate ../doc/ardourapi.json.gz
12 if test -z "$1"; then
13         ./doxy2json/ardourdoc.sh
14 fi
15
16 # generate ../doc/luadoc.json.gz
17 $DIR/../gtk2_ardour/arluadoc
18
19 if test -f $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html; then
20         php $DIR/fmt-luadoc.php -m > $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html
21         ls -l $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html
22         cd $HOME/src/ardour-manual/
23         ./build.rb
24 else
25         php $DIR/fmt-luadoc.php > /tmp/luadoc.html
26         ls -l /tmp/luadoc.html
27 fi