Meta/dodoc: allow forced rebuilding the entire doc
Junio C Hamano committed
Dec 21, 2012 at 15:54 UTC
e8f506d01ac756ab775b733d28ca0dfd1f21f224
1 file changed
+10
-5
dodoc.sh
+10
-5
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