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

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

Issue 197213008: Invoke the bash shell via /usr/bin/env so that these scripts run on operating systems without /bin/… (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/depot_tools.git@master
Patch Set: Use "/usr/bin/env bash" for these files too. Created 6 years, 7 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
« no previous file with comments | « man/src/git-squash-branch.demo.1.sh ('k') | man/src/prep_demo_repo.sh » ('j') | 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 #!/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
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
OLDNEW
« no previous file with comments | « man/src/git-squash-branch.demo.1.sh ('k') | man/src/prep_demo_repo.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698