variable for packaging channelstrip. allow rename
[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 set -e
6 test -f ../libs/ardour/ardour/ardour.h
7 test -e ../gtk2_ardour/arluadoc
8 test -e ../build/gtk2_ardour/luadoc
9
10 # generate ../doc/luadoc.json.gz
11 ../gtk2_ardour/arluadoc
12
13 # generate ../doc/ardourapi.json.gz
14 ./doxy2json/ardourdoc.sh
15
16 if test -f $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html; then
17         php fmt-luadoc.php -m > $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html
18         ls -l $HOME/src/ardour-manual/_manual/24_lua-scripting/02_class_reference.html
19         cd $HOME/src/ardour-manual/
20         ./build.rb
21 else
22         php fmt-luadoc.php > /tmp/luadoc.html
23         ls -l /tmp/luadoc.html
24 fi