From: Junio C Hamano Date: Fri, 21 Dec 2012 23:54:38 +0000 (-0800) Subject: Meta/dodoc: allow forced rebuilding the entire doc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e8f506d01ac756ab775b733d28ca0dfd1f21f224;p=thirdparty%2Fgit.git Meta/dodoc: allow forced rebuilding the entire doc --- diff --git a/dodoc.sh b/dodoc.sh index 987f339893..e306f1a11a 100755 --- 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