projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build/makedocs.sh: handle relative output directories
[project/luci.git]
/
build
/
makedocs.sh
diff --git
a/build/makedocs.sh
b/build/makedocs.sh
index
a9fc760
..
955c58c
100755
(executable)
--- a/
build/makedocs.sh
+++ b/
build/makedocs.sh
@@
-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/"
find "$topdir/libs/" "$topdir/modules/" -type f -name '*.lua' -or -name '*.luadoc' | \
(
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
"
+ xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$
outdir
"
)
)