OLD | NEW |
1 This folder contains GN binaries. They should be automatically downloaded from | 1 This folder contains clang-format binaries. The binaries will be automatically |
2 Google Storage by gclient runhooks for the current platform. | 2 downloaded from Google Storage by gclient runhooks for the current platform. |
3 | 3 |
| 4 For a walkthrough on how to maintain these binaries: |
| 5 https://code.google.com/p/chromium/wiki/UpdatingClangFormatBinaries |
4 | 6 |
5 To upload a file: | 7 To upload a file: |
6 python ~/depot_tools/upload_to_google_storage.py -b chromium-gn <FILENAME> | 8 python ~/depot_tools/upload_to_google_storage.py -b chromium-clang-format <FIL
ENAME> |
7 | 9 |
8 To download a file given a .sha1 file: | 10 To download a file given a .sha1 file: |
9 python ~/depot_tools/download_from_google_storage.py -b chromium-gn -s <FILENA
ME>.sha1 | 11 python ~/depot_tools/download_from_google_storage.py -b chromium-clang-format
-s <FILENAME>.sha1 |
10 | 12 |
11 List the contents of GN's Google Storage bucket: | 13 List the contents of GN's Google Storage bucket: |
12 python ~/depot_tools/third_party/gsutil/gsutil ls gs://chromium-gn/ | 14 python ~/depot_tools/third_party/gsutil/gsutil ls gs://chromium-clang-format/ |
13 | 15 |
14 To initialize gsutil's credentials: | 16 To initialize gsutil's credentials: |
15 python ~/depot_tools/third_party/gsutil/gsutil config | 17 python ~/depot_tools/third_party/gsutil/gsutil config |
16 | 18 |
17 That will give a URL which you should log into with your web browser. The | 19 That will give a URL which you should log into with your web browser. The |
18 username should be the one that is on the ACL for the "chromium-gn" bucket | 20 username should be the one that is on the ACL for the "chromium-clang-format" |
19 (probably your @google.com address). Contact the build team for help getting | 21 bucket (probably your @google.com address). Contact the build team for help |
20 access if necessary. | 22 getting access if necessary. |
21 | 23 |
22 Copy the code back to the command line util. Ignore the project ID (it's OK | 24 Copy the code back to the command line util. Ignore the project ID (it's OK |
23 to just leave blank when prompted). | 25 to just leave blank when prompted). |
24 | 26 |
25 gsutil documentation: | 27 gsutil documentation: |
26 https://developers.google.com/storage/docs/gsutil | 28 https://developers.google.com/storage/docs/gsutil |
OLD | NEW |