Housekeeper should not fail when skia-autogen is reset.
Created to fix https://code.google.com/p/skia/issues/detail?id=1269 : UpdateDoxygen and UploadDoxygen steps fail when skia-autogen repository is reset. (SkipBuildbotRuns) R=borenet@google.com Review URL: https://codereview.chromium.org/14772003 git-svn-id: http://skia.googlecode.com/svn/trunk@8935 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
7103344b64
commit
8fc729f8a2
@ -13,6 +13,16 @@
|
|||||||
# export DOXYGEN_COMMIT=false
|
# export DOXYGEN_COMMIT=false
|
||||||
# bash update-doxygen.sh
|
# bash update-doxygen.sh
|
||||||
|
|
||||||
|
function check_out_docs {
|
||||||
|
svn checkout https://skia-autogen.googlecode.com/svn/docs # writeable
|
||||||
|
ret_code=$?
|
||||||
|
if [ $ret_code != 0 ]; then
|
||||||
|
# docs directory does not exist, skia-autogen must have been reset.
|
||||||
|
# Create a non svn docs directory instead.
|
||||||
|
mkdir docs
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# Prepare a temporary dir and check out Skia trunk and docs.
|
# Prepare a temporary dir and check out Skia trunk and docs.
|
||||||
cd
|
cd
|
||||||
DOXYGEN_TEMPDIR=${DOXYGEN_TEMPDIR:-/tmp/skia-doxygen}
|
DOXYGEN_TEMPDIR=${DOXYGEN_TEMPDIR:-/tmp/skia-doxygen}
|
||||||
@ -28,12 +38,20 @@ else
|
|||||||
fi
|
fi
|
||||||
if [ -d "docs" ]; then
|
if [ -d "docs" ]; then
|
||||||
svn update --accept theirs-full docs
|
svn update --accept theirs-full docs
|
||||||
|
svn info docs
|
||||||
|
ret_code=$?
|
||||||
|
if [ $ret_code != 0 ]; then
|
||||||
|
# This is not a valid SVN checkout.
|
||||||
|
rm -rf docs
|
||||||
|
check_out_docs
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
svn checkout https://skia-autogen.googlecode.com/svn/docs # writeable
|
check_out_docs
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -f "docs/static_footer.txt" ]; then
|
if [ ! -f "docs/static_footer.txt" ]; then
|
||||||
cp trunk/tools/doxygen_footer.txt docs/static_footer.txt
|
cp trunk/tools/doxygen_footer.txt docs/static_footer.txt
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
# Run Doxygen.
|
# Run Doxygen.
|
||||||
cd trunk
|
cd trunk
|
||||||
|
Loading…
Reference in New Issue
Block a user