build/makedocs.sh: handle relative output directories
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
parent
b96d223642
commit
6c72dec7e5
1 changed files with 8 additions and 1 deletions
|
@ -7,8 +7,15 @@ topdir=$(pwd)
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
outdir=$(readlink -f "$1")
|
||||||
|
|
||||||
|
mkdir -p "$outdir" || {
|
||||||
|
echo "Unable to mkdir '$outdir'" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
(
|
(
|
||||||
cd "$topdir/build/luadoc/"
|
cd "$topdir/build/luadoc/"
|
||||||
find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
|
find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
|
||||||
xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$1"
|
xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$outdir"
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue