]> git.ipfire.org Git - thirdparty/git.git/commitdiff
dodoc: start from clean slate on a tagged version
authorJunio C Hamano <gitster@pobox.com>
Sat, 13 Feb 2010 01:01:56 +0000 (17:01 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 13 Feb 2010 01:01:56 +0000 (17:01 -0800)
dodoc.sh

index 132db78fcabbcbc4fb96269939518f5c10ec583f..0c064ce42663228784d6823319248e01c9e0a1fe 100755 (executable)
--- a/dodoc.sh
+++ b/dodoc.sh
@@ -77,6 +77,15 @@ MAN_BASE_URL="http://www.kernel.org/pub/software/scm/git/docs/"
 BLK_SHA1=YesPlease
 GNU_ROFF=YesPlease'
 
+case "$NID" in
+?*-?*) ;;
+?*)
+       make clean &&
+       rm -fr doc-html-inst doc-man-inst &&
+       mkdir doc-html-inst doc-man-inst || exit
+       ;;
+esac
+
 make >./:html.log 2>&1 \
        -C Documentation -j 2 $dd \
        WEBDOC_DEST="$DOCREPO/doc-html-inst" install-webdoc || exit