Chromium Code Reviews| Index: pkg/docgen/bin/upload_docgen.py |
| diff --git a/pkg/docgen/bin/upload_docgen.py b/pkg/docgen/bin/upload_docgen.py |
| index 9e2d335b6c4587037cf29cca1317f1f5c605abd5..fb39513923a5dabef7d627fb35aa56f06b3b5598 100644 |
| --- a/pkg/docgen/bin/upload_docgen.py |
| +++ b/pkg/docgen/bin/upload_docgen.py |
| @@ -67,9 +67,7 @@ def main(): |
| SetGsutil() |
| # Execute Docgen.dart on the SDK. |
| - ExecuteCommand([DART, '--checked', '--package-root=' + PACKAGE_ROOT, |
| - abspath(join(dirname(__file__), 'docgen.dart')), |
| - '--parse-sdk', '--json']) |
| + ExecuteCommand(['sh', './generate_all_docs.sh']) |
| # Use SVN Revision to get the revision number. |
| revision = utils.GetSVNRevision() |
| @@ -87,7 +85,12 @@ def main(): |
| # Upload the all files in Docs into a folder based off Revision number on |
| # Cloud Storage. |
| - Upload('./docs/*', GS_SITE + '/' + revision + '/') |
| + # TODO(alanknight): If we give it ./docs/* it fails to upload files in the |
| + # subdirectory, probably due to escaping. Work around it by changing dir. |
| + # Better, generalize this to be less dependent on the working directory. |
| + os.chdir('docs') |
| + Upload('.', GS_SITE + '/' + revision + '/') |
|
terry
2013/10/30 18:11:31
Would this work then you wouldn't have to chdir to
Alan Knight
2013/10/30 18:31:33
That works, but then uploads into a subdirectory c
|
| + os.chdir('..') |
| # Update VERSION file in Cloud Storage. |
| with open('VERSION', 'w') as version_file: |