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

Side by Side Diff: crup-runner.sh

Issue 11260036: Keep the parallel execution pipes full as much as possible. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 8 years, 1 month 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 | « no previous file | git-crup » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2
3 if [ -z "$*" ]; then
4 exit 0
5 fi
6 set -o pipefail
7 dir="$1"
8 solution="${1%%/*}"
9 cd "$solution"
10 if [ "$solution" = "$1" ]; then
11 shift
12 $@ | sed "s/^/[$solution] /g" 1>&2
13 if [ $? -ne 0 ]; then
14 exit $?
15 fi
16 "$GIT_EXE" submodule --quiet sync
17 "$GIT_EXE" ls-files -s | grep ^160000 | awk '{print $4}' |
18 sed "s/^/$solution\//g"
19 status=$?
20 else
21 submodule="${1#*/}"
22 echo "[$solution] updating $submodule ..."
23 "$GIT_EXE" submodule update --quiet --init "$submodule" |
24 ( grep -v '^Skipping submodule' || true ) | sed "s|^|[$1] |g"
25 status=$?
26 if [ "$status" -ne "0" ]; then
27 echo "[$solution] FAILED to update $submodule"
28 fi
29 fi
30 exit $status
OLDNEW
« no previous file with comments | « no previous file | git-crup » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698