@leroysheep / BookAlchemy / commits / 89822eec3b

Meta/dodoc.sh: do not lose index.html

Junio C Hamano committed Mar 28, 2007 at 14:14 UTC 89822eec3bbe1d64c3f446ab947e1e774c876284
1 file changed +16 -4
dodoc.sh
+16 -4
index dc36de5f46..e4a70a11b9 100755 --- a/dodoc.sh +++ b/dodoc.sh @@ -69,11 +69,11 @@ do rm -fr doc-$type-inst done -make >../:html.log 2>&1 \ +make >./:html.log 2>&1 \ -C Documentation -j 2 \ WEBDOC_DEST="$DOCREPO/doc-html-inst" install-webdoc || exit -make >../:man.log 2>&1 \ +make >./:man.log 2>&1 \ -C Documentation -j 2 \ man1="$DOCREPO/doc-man-inst/man1" \ man7="$DOCREPO/doc-man-inst/man7" \ @@ -102,7 +102,19 @@ do ( cd doc-${type}pages - if git commit -a -m "Autogenerated docs for $NID" + case "$type" in + html) + TYPE='HTML docs' + rm -f index.html + ln -sf git.html index.html + git add index.html + ;; + man) + TYPE='manpages' + ;; + esac + + if git commit -a -m "Autogenerated $TYPE for $NID" then git send-pack "$MASTERREPO" master:refs/heads/$type else @@ -115,7 +127,7 @@ if test -d $PUBLIC then # This is iffy... mv Documentation/git.html Documentation/saved-git-html - make >>../:html.log 2>&1 \ + make >>./:html.log 2>&1 \ -C Documentation \ WEBDOC_DEST="$PUBLIC" ASCIIDOC_EXTRA='-a stalenotes' \ install-webdoc &&