luci-base: prevent parsing the form input after cbi emergency save
[project/luci.git] / build / makedocs.sh
1 #!/bin/bash
2
3 topdir=$(pwd)
4
5 [ -f "$topdir/build/makedocs.sh" -a -n "$1" ] || {
6         echo "Please execute as ./build/makedocs.sh [output directory]" >&2
7         exit 1
8 }
9
10 (
11         cd "$topdir/build/luadoc/"
12         find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
13                 xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$1"
14 )