| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |