Make update-doxygen.sh upload docs to http://code.google.com/p/skia-autogen

(and fix mime-type propset bug)

Once this is committed, I will remove the doxygen docs from the skia repo.
Review URL: http://codereview.appspot.com/5452072

git-svn-id: http://skia.googlecode.com/svn/trunk@2824 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
epoger@google.com 2011-12-07 18:52:40 +00:00
parent 982cb875f0
commit 338ef6532d

View File

@ -1,7 +1,7 @@
#!/bin/bash
#
# Runs doxygen and stores its results in the Skia repo, so that they can be
# browsed at http://skia.googlecode.com/svn/docs/html/index.html
# Runs doxygen and stores its results in the skia-autogen repo, so that they
# can be browsed at http://skia-autogen.googlecode.com/svn/docs/html/index.html
# Prepare a temporary dir and check out Skia trunk and docs.
cd
@ -10,7 +10,7 @@ rm -rf $TEMPDIR
mkdir -p $TEMPDIR
cd $TEMPDIR
svn checkout http://skia.googlecode.com/svn/trunk # read-only
svn checkout https://skia.googlecode.com/svn/docs # writeable
svn checkout https://skia-autogen.googlecode.com/svn/docs # writeable
# Run Doxygen.
cd trunk
@ -43,11 +43,11 @@ $(doxygen --version) </small></address>
EOF
# Make sure that all files have the correct mimetype.
find . -name *.html -exec svn propset svn:mime-type text/html '{}' \;
find . -name *.css -exec svn propset svn:mime-type text/css '{}' \;
find . -name *.js -exec svn propset svn:mime-type text/javascript '{}' \;
find . -name *.gif -exec svn propset svn:mime-type image/gif '{}' \;
find . -name *.png -exec svn propset svn:mime-type image/png '{}' \;
find . -name '*.html' -exec svn propset svn:mime-type text/html '{}' \;
find . -name '*.css' -exec svn propset svn:mime-type text/css '{}' \;
find . -name '*.js' -exec svn propset svn:mime-type text/javascript '{}' \;
find . -name '*.gif' -exec svn propset svn:mime-type image/gif '{}' \;
find . -name '*.png' -exec svn propset svn:mime-type image/png '{}' \;
# Commit the updated docs to the subversion repo.
svn commit --message 'commit doxygen-generated documentation'