Skip to content

Commit e8f506d

Browse files
committed
Meta/dodoc: allow forced rebuilding the entire doc
1 parent 9f15e75 commit e8f506d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

dodoc.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,19 @@ dd='
6969
GNU_ROFF=YesPlease
7070
'
7171

72-
case "$NID" in
73-
?*-?*) ;;
74-
?*)
72+
if test -z "$DOC_FROM_SCRATCH"
73+
then
74+
case "$NID" in
75+
?*-?*) ;;
76+
?*) DOC_FROM_SCRATCH=yes ;;
77+
esac
78+
fi
79+
if test -n "$DOC_FROM_SCRATCH"
80+
then
7581
make clean &&
7682
rm -fr doc-html-inst doc-man-inst &&
7783
mkdir doc-html-inst doc-man-inst || exit
78-
;;
79-
esac
84+
fi
8085

8186
DIFF=diff
8287
export DIFF

0 commit comments

Comments
 (0)