OLD | NEW |
1 #!/bin/bash -e | 1 #!/usr/bin/env bash |
| 2 |
| 3 set -e |
| 4 |
2 shopt -s nullglob | 5 shopt -s nullglob |
3 | 6 |
4 cd $(dirname "$0") | 7 cd $(dirname "$0") |
5 | 8 |
6 # Script which takes all the asciidoc git-*.txt files in this directory, renders | 9 # 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 | 10 # them to html + manpage format using git 1.9's doc toolchain, then puts |
8 # them in depot_tools to be committed. | 11 # them in depot_tools to be committed. |
9 | 12 |
10 ensure_in_path() { | 13 ensure_in_path() { |
11 local CMD=$1 | 14 local CMD=$1 |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 do | 244 do |
242 echo Copying ../man1/$x | 245 echo Copying ../man1/$x |
243 cp "git/Documentation/$x" ../man1 | 246 cp "git/Documentation/$x" ../man1 |
244 done | 247 done |
245 | 248 |
246 for x in "${MAN7_TARGETS[@]}" | 249 for x in "${MAN7_TARGETS[@]}" |
247 do | 250 do |
248 echo Copying ../man7/$x | 251 echo Copying ../man7/$x |
249 cp "git/Documentation/$x" ../man7 | 252 cp "git/Documentation/$x" ../man7 |
250 done | 253 done |
OLD | NEW |