luci/build/makedocs.sh
Jo-Philipp Wich c669c01cea build: add modified luadoc for use with LuCI sources
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-01-28 22:28:04 +01:00

14 lines
342 B
Bash
Executable file

#!/bin/bash
topdir=$(pwd)
[ -f "$topdir/build/makedocs.sh" -a -n "$1" ] || {
echo "Please execute as ./build/makedocs.sh [output directory]" >&2
exit 1
}
(
cd "$topdir/build/luadoc/"
find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$1"
)