adjust h-size of color theme manager "Reset to Defaults" button
[ardour.git] / tools / update_luadoc.sh
index 09482761fba9c18f629f4f2c85d68e329783e4a7..258e9a2341b229bb116626e7441ad9687509d318 100755 (executable)
@@ -1,18 +1,29 @@
 #!/bin/sh
 ## ardour needs to be configured with  --luadoc and build should be up-to date.
 
+AMANUAL=$HOME/src/ardour-manual
+
 cd `dirname $0`
+DIR=`pwd`
 set -e
 test -f ../libs/ardour/ardour/ardour.h
 test -e ../gtk2_ardour/arluadoc
 test -e ../build/gtk2_ardour/luadoc
 
-# generate ../doc/luadoc.json.gz
-../gtk2_ardour/arluadoc
-
 # generate ../doc/ardourapi.json.gz
-./doxy2json/ardourdoc.sh
+if test -z "$1"; then
+       ./doxy2json/ardourdoc.sh
+fi
+
+# generate ../doc/luadoc.json.gz
+$DIR/../gtk2_ardour/arluadoc
 
-php fmt-luadoc.php > /tmp/luadoc.html
-# ^^ needs manual copy to ardour-manual
-ls -l /tmp/luadoc.html
+if test -f $AMANUAL/include/class-reference.html; then
+       php $DIR/fmt-luadoc.php -m > $AMANUAL/include/class-reference.html
+       ls -l $AMANUAL/include/class-reference.html
+       cd $AMANUAL/
+       ./build.py
+else
+       php $DIR/fmt-luadoc.php > /tmp/luadoc.html
+       ls -l /tmp/luadoc.html
+fi