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

Side by Side Diff: docs/src/make_docs.sh

Issue 234733003: Improvements and bugfixes to the depot_tools doc generation process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « docs/src/git-squash-branch.demo.1.sh ('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 -e 1 #!/bin/bash -e
2 shopt -s nullglob 2 shopt -s nullglob
3 3
4 cd $(dirname "$0") 4 cd $(dirname "$0")
5 5
6 # Script which takes all the asciidoc git-*.txt files in this directory, renders 6 # Script which takes all the asciidoc git-*.txt files in this directory, renders
7 # them to html + manpage format using git 1.9's doc toolchain, then puts 7 # them to html + manpage format using git 1.9's doc toolchain, then puts
8 # them in depot_tools to be committed. 8 # them in depot_tools to be committed.
9 9
10 ensure_in_path() { 10 ensure_in_path() {
(...skipping 23 matching lines...) Expand all
34 ASCIIDOC_HASH=7fed0aff1b30 34 ASCIIDOC_HASH=7fed0aff1b30
35 if [[ ! -d asciidoc || $(cd asciidoc && hg id -i) != $ASCIIDOC_HASH ]] 35 if [[ ! -d asciidoc || $(cd asciidoc && hg id -i) != $ASCIIDOC_HASH ]]
36 then 36 then
37 echo Cloning asciidoc 37 echo Cloning asciidoc
38 rm -rf asciidoc 38 rm -rf asciidoc
39 hg clone -r $BRANCH https://asciidoc.googlecode.com/hg/ asciidoc 39 hg clone -r $BRANCH https://asciidoc.googlecode.com/hg/ asciidoc
40 (cd asciidoc && ln -s asciidoc.py asciidoc) 40 (cd asciidoc && ln -s asciidoc.py asciidoc)
41 fi 41 fi
42 echo Asciidoc up to date at $ASCIIDOC_HASH \($BRANCH\) 42 echo Asciidoc up to date at $ASCIIDOC_HASH \($BRANCH\)
43 43
44 export PATH=`pwd`/asciidoc:$PATH
45
44 # We pull ansi2hash to convert demo script output 46 # We pull ansi2hash to convert demo script output
45 BRANCH=1.0.6 47 BRANCH=1.0.6
46 ANSI2HTML_HASH=6282ab7a24a5a7eab2e0b23bb0055234c533a6e9 48 ANSI2HTML_HASH=6282ab7a24a5a7eab2e0b23bb0055234c533a6e9
47 if [[ ! -d ansi2html || $(git -C ansi2html rev-parse HEAD) != $ANSI2HTML_HASH ]] 49 if [[ ! -d ansi2html || $(git -C ansi2html rev-parse HEAD) != $ANSI2HTML_HASH ]]
48 then 50 then
49 echo Cloning ansi2html 51 echo Cloning ansi2html
50 rm -rf ansi2html 52 rm -rf ansi2html
51 git clone --single-branch --branch $BRANCH --depth 1 \ 53 git clone --single-branch --branch $BRANCH --depth 1 \
52 https://github.com/ralphbean/ansi2html.git 2> /dev/null 54 https://github.com/ralphbean/ansi2html.git 2> /dev/null
53 curl https://bitbucket.org/gutworth/six/raw/a875ac34c777fe801569c6c5299bf1a35a a578cd/six.py > \ 55 curl https://bitbucket.org/gutworth/six/raw/a875ac34c777fe801569c6c5299bf1a35a a578cd/six.py > \
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 do 241 do
240 echo Copying ../man1/$x 242 echo Copying ../man1/$x
241 cp "git/Documentation/$x" ../man1 243 cp "git/Documentation/$x" ../man1
242 done 244 done
243 245
244 for x in "${MAN7_TARGETS[@]}" 246 for x in "${MAN7_TARGETS[@]}"
245 do 247 do
246 echo Copying ../man7/$x 248 echo Copying ../man7/$x
247 cp "git/Documentation/$x" ../man7 249 cp "git/Documentation/$x" ../man7
248 done 250 done
OLDNEW
« no previous file with comments | « docs/src/git-squash-branch.demo.1.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698