Meta/dodoc.sh: do not lose index.html
parent
c192899ebc
commit
89822eec3b
20
dodoc.sh
20
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 &&
|
||||
|
|
|
|||
Loading…
Reference in New Issue