Skip to content

Commit ffdf9ac

Browse files
author
Junio C Hamano
committed
Do not rebuild git.html unnecessarily
1 parent f3f63cf commit ffdf9ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

dodoc.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,11 @@ make WEBDOC_DEST="$DOCREPO/doc-htmlpages" install-webdoc >../:html.log 2>&1 &&
7272

7373
if test -d $PUBLIC
7474
then
75-
rm -f git.html &&
75+
# This is iffy...
76+
mv git.html saved-git-html &&
7677
make WEBDOC_DEST="$PUBLIC" ASCIIDOC_EXTRA='-a stalenotes' \
7778
install-webdoc >>../:html.log 2>&1 &&
78-
rm -f git.html
79+
mv saved-git-html git.html
7980
else
8081
echo "* No public html at $PUBLIC"
8182
fi || exit $?

0 commit comments

Comments
 (0)