projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b96d223
)
build/makedocs.sh: handle relative output directories
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 2 Sep 2015 07:38:28 +0000
(09:38 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 2 Sep 2015 07:39:24 +0000
(09:39 +0200)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
build/makedocs.sh
patch
|
blob
|
history
diff --git
a/build/makedocs.sh
b/build/makedocs.sh
index a9fc760e7a1ef0565c6b079315d58e0183cc6e6d..955c58cf0e29780c2c0b90658c4ccbeccfe0c2b9 100755
(executable)
--- a/
build/makedocs.sh
+++ b/
build/makedocs.sh
@@
-7,8
+7,15
@@
topdir=$(pwd)
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' | \
- xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$
1
"
+ xargs grep -l '@return' | xargs ./doc.lua --no-files -d "$
outdir
"
)