Skip to content

Commit c285f0b

Browse files
Consolatisjohanmalm
authored andcommitted
build-site: make LABWC_DOC_DIR configurable
1 parent 137a1c7 commit c285f0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

build-site

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# This script depends on pandoc
44
#
55

6+
: ${LABWC_DOC_DIR:=../labwc/build/docs}
7+
68
die () {
79
printf 'fatal: %b\n' "$@" >&2
810
exit 1
@@ -20,12 +22,12 @@ build_src_pages () {
2022
}
2123

2224
build_man_pages () {
23-
if ! [[ -d ../labwc/build/docs ]]; then
25+
if ! [[ -d "$LABWC_DOC_DIR" ]]; then
2426
printf 'warn: %b\n' "Need labwc next to labwc.github.io with man pages built" >&2
2527
return
2628
fi
2729
template="$(sed -e 's/sans-serif/monospace/' src/template.html)"
28-
for scd in ../labwc/build/docs/*; do
30+
for scd in "$LABWC_DOC_DIR"/*; do
2931
filename=${scd##*/}
3032
html=$(basename ${scd}).html
3133
[[ $html -ot $scd ]] || continue

0 commit comments

Comments
 (0)