]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/dodoc: allow forced rebuilding the entire doc
authorJunio C Hamano <gitster@pobox.com>
Fri, 21 Dec 2012 23:54:38 +0000 (15:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Dec 2012 23:54:38 +0000 (15:54 -0800)
dodoc.sh

index 987f33989323a89f531d647c43b1e0dd487ec4ed..e306f1a11abed2d1dc7f1fd8fe089cf62b2e418a 100755 (executable)
--- a/dodoc.sh
+++ b/dodoc.sh
@@ -69,14 +69,19 @@ dd='
        GNU_ROFF=YesPlease
 '
 
-case "$NID" in
-?*-?*) ;;
-?*)
+if test -z "$DOC_FROM_SCRATCH"
+then
+       case "$NID" in
+       ?*-?*) ;;
+       ?*) DOC_FROM_SCRATCH=yes ;;
+       esac
+fi
+if test -n "$DOC_FROM_SCRATCH"
+then
        make clean &&
        rm -fr doc-html-inst doc-man-inst &&
        mkdir doc-html-inst doc-man-inst || exit
-       ;;
-esac
+fi
 
 DIFF=diff
 export DIFF