File: update_luadoc.sh

package info (click to toggle)
ardour 1:5.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 74,708 kB
  • sloc: cpp: 512,951; xml: 123,656; ansic: 65,010; python: 22,599; sh: 5,368; asm: 1,347; perl: 888; php: 770; makefile: 253; objc: 28
file content (29 lines) | stat: -rwxr-xr-x 686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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/ardourapi.json.gz
if test -z "$1"; then
	./doxy2json/ardourdoc.sh
fi

# generate ../doc/luadoc.json.gz
$DIR/../gtk2_ardour/arluadoc

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