Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: tools/update-doxygen.sh

Issue 132423002: Remove references to Skia's SVN repository (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« tools/submit_try ('K') | « tools/submit_try ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
borenet 2014/01/09 19:27:28 Update to use a git checkout.
2 # 2 #
3 # Runs doxygen and stores its results in the skia-autogen repo, so that they 3 # Runs doxygen and stores its results in the skia-autogen repo, so that they
4 # can be browsed at http://skia-autogen.googlecode.com/svn/docs/html/index.html 4 # can be browsed at http://skia-autogen.googlecode.com/svn/docs/html/index.html
5 # 5 #
6 # The DOXYGEN_TEMPDIR env variable is the working directory within which we will 6 # The DOXYGEN_TEMPDIR env variable is the working directory within which we will
7 # check out the code, generate documentation, and store the doxygen log 7 # check out the code, generate documentation, and store the doxygen log
8 # (by default, /tmp/skia-doxygen). The DOXYGEN_COMMIT env variable determines 8 # (by default, /tmp/skia-doxygen). The DOXYGEN_COMMIT env variable determines
9 # whether docs should be commited (true by default). 9 # whether docs should be commited (true by default).
10 # 10 #
11 # Sample Usage: 11 # Sample Usage:
(...skipping 12 matching lines...) Expand all
24 } 24 }
25 25
26 # Prepare a temporary dir and check out Skia trunk and docs. 26 # Prepare a temporary dir and check out Skia trunk and docs.
27 cd 27 cd
28 DOXYGEN_TEMPDIR=${DOXYGEN_TEMPDIR:-/tmp/skia-doxygen} 28 DOXYGEN_TEMPDIR=${DOXYGEN_TEMPDIR:-/tmp/skia-doxygen}
29 DOXYGEN_COMMIT=${DOXYGEN_COMMIT:-true} 29 DOXYGEN_COMMIT=${DOXYGEN_COMMIT:-true}
30 30
31 mkdir -p $DOXYGEN_TEMPDIR 31 mkdir -p $DOXYGEN_TEMPDIR
32 cd $DOXYGEN_TEMPDIR 32 cd $DOXYGEN_TEMPDIR
33 33
34 if [ -d "trunk" ]; then 34 if [ -d "skia" ]; then
35 svn update --accept theirs-full trunk 35 pushd skia
36 git pull
37 git checkout origin/master
38 popd
36 else 39 else
37 svn checkout http://skia.googlecode.com/svn/trunk # read-only 40 git clone https://skia.googlesource.com/skia.git
38 fi 41 fi
39 if [ -d "docs" ]; then 42 if [ -d "docs" ]; then
40 svn update --accept theirs-full docs 43 svn update --accept theirs-full docs
41 svn info docs 44 svn info docs
42 ret_code=$? 45 ret_code=$?
43 if [ $ret_code != 0 ]; then 46 if [ $ret_code != 0 ]; then
44 # This is not a valid SVN checkout. 47 # This is not a valid SVN checkout.
45 rm -rf docs 48 rm -rf docs
46 check_out_docs 49 check_out_docs
47 fi 50 fi
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 find . -name '*.png' -exec svn propset svn:mime-type image/png '{}' \; 100 find . -name '*.png' -exec svn propset svn:mime-type image/png '{}' \;
98 101
99 # Output files with documentation updates. 102 # Output files with documentation updates.
100 echo -e "\n\nThe following are the documentation updates:" 103 echo -e "\n\nThe following are the documentation updates:"
101 echo $MODFILES 104 echo $MODFILES
102 105
103 if $DOXYGEN_COMMIT ; then 106 if $DOXYGEN_COMMIT ; then
104 # Commit the updated docs to the subversion repo. 107 # Commit the updated docs to the subversion repo.
105 svn commit --message 'commit doxygen-generated documentation' 108 svn commit --message 'commit doxygen-generated documentation'
106 fi 109 fi
OLDNEW
« tools/submit_try ('K') | « tools/submit_try ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698