DescriptionAdds --auto_platform to download_from_google_storage.
A very common pattern for the users of this script is to have binaries in
three different folders, eg:
some/folder/win/bin.exe
some/folder/mac/bin
some/folder/linux/bin
Instead of using --platform to specify three different paths, we can recognize
this usage and pass in --auto_platform, and then --directory some/folder/ as the
target.
When enumerating files, it will match each individual file to see if they have
(win|mac|linux) as a parent folder name, and filter out non-matching platforms.
BUG=
TEST= src/third_party/clang_format/bin$ download_from_google_storage --auto_platform --no_auth -b chromium-clang-fomat -dr .
0> Downloading ./linux/clang-format...
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=245643
Patch Set 1 #
Total comments: 16
Patch Set 2 : Review fixes, fixed infinite recursion bug #Patch Set 3 : abs() fix #Patch Set 4 : optparse fix #
Messages
Total messages: 7 (0 generated)
|