OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
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: |
12 # export DOXYGEN_TEMPDIR=/tmp/doxygen | 12 # export DOXYGEN_TEMPDIR=/tmp/doxygen |
13 # export DOXYGEN_COMMIT=false | 13 # export DOXYGEN_COMMIT=false |
14 # bash update-doxygen.sh | 14 # bash update-doxygen.sh |
| 15 # |
| 16 # To install doxygen on most Linux systems, you can run: |
| 17 # sudo apt-get install doxygen |
15 | 18 |
16 function check_out_docs { | 19 function check_out_docs { |
17 svn checkout https://skia-autogen.googlecode.com/svn/docs # writeable | 20 svn checkout https://skia-autogen.googlecode.com/svn/docs # writeable |
18 ret_code=$? | 21 ret_code=$? |
19 if [ $ret_code != 0 ]; then | 22 if [ $ret_code != 0 ]; then |
20 # docs directory does not exist, skia-autogen must have been reset. | 23 # docs directory does not exist, skia-autogen must have been reset. |
21 # Create a non svn docs directory instead. | 24 # Create a non svn docs directory instead. |
22 mkdir docs | 25 mkdir docs |
23 fi | 26 fi |
24 } | 27 } |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 find . -name '*.png' -exec svn propset svn:mime-type image/png '{}' \; | 103 find . -name '*.png' -exec svn propset svn:mime-type image/png '{}' \; |
101 | 104 |
102 # Output files with documentation updates. | 105 # Output files with documentation updates. |
103 echo -e "\n\nThe following are the documentation updates:" | 106 echo -e "\n\nThe following are the documentation updates:" |
104 echo $MODFILES | 107 echo $MODFILES |
105 | 108 |
106 if $DOXYGEN_COMMIT ; then | 109 if $DOXYGEN_COMMIT ; then |
107 # Commit the updated docs to the subversion repo. | 110 # Commit the updated docs to the subversion repo. |
108 svn commit --message 'commit doxygen-generated documentation' | 111 svn commit --message 'commit doxygen-generated documentation' |
109 fi | 112 fi |
OLD | NEW |