Do not rebuild git.html unnecessarily
Junio C Hamano committed
Feb 13, 2007 at 22:15 UTC
ffdf9acfb0188d8767ab61c38f1d6ff4fab01f18
1 file changed
+3
-2
dodoc.sh
+3
-2
@@ -72,10 +72,11 @@ make WEBDOC_DEST="$DOCREPO/doc-htmlpages" install-webdoc >../:html.log 2>&1 &&
72
73
if test -d $PUBLIC
74
then
75
- rm -f git.html &&
75
+ # This is iffy...
76
+ mv git.html saved-git-html &&
77
make WEBDOC_DEST="$PUBLIC" ASCIIDOC_EXTRA='-a stalenotes' \
78
install-webdoc >>../:html.log 2>&1 &&
78
- rm -f git.html
79
+ mv saved-git-html git.html
80
else
81
echo "* No public html at $PUBLIC"
82
fi || exit $?