Welcome to mirror list, hosted at ThFree Co, Russian Federation.

makedocs.sh « build - github.com/openwrt/luci.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 955c58cf0e29780c2c0b90658c4ccbeccfe0c2b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

topdir=$(pwd)

[ -f "$topdir/build/makedocs.sh" -a -n "$1" ] || {
	echo "Please execute as ./build/makedocs.sh [output directory]" >&2
	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 "$outdir"
)