5 [ -f "$topdir/build/makedocs.sh" -a -n "$1" ] || {
6 echo "Please execute as ./build/makedocs.sh [output directory]" >&2
10 outdir=$(readlink -f "$1")
12 mkdir -p "$outdir" || {
13 echo "Unable to mkdir '$outdir'" >&2
18 cd "$topdir/build/luadoc/"
19 find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
20 xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$outdir"