2016-04-06 11:01:53 -04:00
|
|
|
#!/bin/sh
|
|
|
|
## ardour needs to be configured with --luadoc and build should be up-to date.
|
|
|
|
|
2017-01-14 13:33:25 -05:00
|
|
|
AMANUAL=$HOME/src/ardour-manual
|
|
|
|
|
2016-04-06 11:01:53 -04:00
|
|
|
cd `dirname $0`
|
2016-04-10 17:34:00 -04:00
|
|
|
DIR=`pwd`
|
2016-04-06 11:01:53 -04:00
|
|
|
set -e
|
|
|
|
test -f ../libs/ardour/ardour/ardour.h
|
|
|
|
test -e ../gtk2_ardour/arluadoc
|
|
|
|
test -e ../build/gtk2_ardour/luadoc
|
|
|
|
|
|
|
|
# generate ../doc/ardourapi.json.gz
|
2016-04-12 18:48:39 -04:00
|
|
|
if test -z "$1"; then
|
|
|
|
./doxy2json/ardourdoc.sh
|
|
|
|
fi
|
2016-04-06 11:01:53 -04:00
|
|
|
|
2016-04-10 17:34:00 -04:00
|
|
|
# generate ../doc/luadoc.json.gz
|
|
|
|
$DIR/../gtk2_ardour/arluadoc
|
|
|
|
|
2017-02-14 08:44:51 -05:00
|
|
|
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
|
2017-01-14 13:33:25 -05:00
|
|
|
cd $AMANUAL/
|
2017-02-14 08:44:51 -05:00
|
|
|
./build.py
|
2016-04-06 12:23:25 -04:00
|
|
|
else
|
2016-04-10 17:34:00 -04:00
|
|
|
php $DIR/fmt-luadoc.php > /tmp/luadoc.html
|
2016-04-06 12:23:25 -04:00
|
|
|
ls -l /tmp/luadoc.html
|
|
|
|
fi
|