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

Side by Side Diff: chrome/common/extensions/docs/server2/build_server.py

Issue 498813002: Rename the docserver third_party dependency "handlebar" to "motemplate", as part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: imports Created 6 years, 3 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
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This script is used to copy all dependencies into the local directory. 6 # This script is used to copy all dependencies into the local directory.
7 # The package of files can then be uploaded to App Engine. 7 # The package of files can then be uploaded to App Engine.
8 import os 8 import os
9 import shutil 9 import shutil
10 import stat 10 import stat
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 if os.path.isdir(LOCAL_THIRD_PARTY_DIR): 51 if os.path.isdir(LOCAL_THIRD_PARTY_DIR):
52 try: 52 try:
53 shutil.rmtree(LOCAL_THIRD_PARTY_DIR, False, OnError) 53 shutil.rmtree(LOCAL_THIRD_PARTY_DIR, False, OnError)
54 except OSError: 54 except OSError:
55 print('*-------------------------------------------------------------*\n' 55 print('*-------------------------------------------------------------*\n'
56 '| If you are receiving an upload error, try removing |\n' 56 '| If you are receiving an upload error, try removing |\n'
57 '| chrome/common/extensions/docs/server2/third_party manually. |\n' 57 '| chrome/common/extensions/docs/server2/third_party manually. |\n'
58 '*-------------------------------------------------------------*\n') 58 '*-------------------------------------------------------------*\n')
59 59
60 60
61 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'handlebar'), 'handlebar') 61 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'motemplate'), 'motemplate')
62 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'markdown'), 'markdown', 62 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'markdown'), 'markdown',
63 make_init=False) 63 make_init=False)
64 CopyThirdParty(os.path.join(SRC_DIR, 'ppapi', 'generators'), 64 CopyThirdParty(os.path.join(SRC_DIR, 'ppapi', 'generators'),
65 'json_schema_compiler') 65 'json_schema_compiler')
66 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'ply'), 66 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'ply'),
67 os.path.join('json_schema_compiler', 'ply')) 67 os.path.join('json_schema_compiler', 'ply'))
68 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_schema_compiler'), 68 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_schema_compiler'),
69 'json_schema_compiler', 69 'json_schema_compiler',
70 SCHEMA_COMPILER_FILES) 70 SCHEMA_COMPILER_FILES)
71 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'), 71 CopyThirdParty(os.path.join(TOOLS_DIR, 'json_comment_eater'),
72 'json_schema_compiler', 72 'json_schema_compiler',
73 ['json_comment_eater.py']) 73 ['json_comment_eater.py'])
74 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'), 74 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'simplejson'),
75 os.path.join('json_schema_compiler', 'simplejson'), 75 os.path.join('json_schema_compiler', 'simplejson'),
76 make_init=False) 76 make_init=False)
77 MakeInit(LOCAL_THIRD_PARTY_DIR) 77 MakeInit(LOCAL_THIRD_PARTY_DIR)
78 78
79 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'google_appengine_cloudstorage', 79 CopyThirdParty(os.path.join(THIRD_PARTY_DIR, 'google_appengine_cloudstorage',
80 'cloudstorage'), 'cloudstorage') 80 'cloudstorage'), 'cloudstorage')
81 81
82 # To be able to use the Handlebar class we need this import in __init__.py. 82 # To be able to use the Motemplate class we need this import in __init__.py.
83 with open(os.path.join(LOCAL_THIRD_PARTY_DIR, 83 with open(os.path.join(LOCAL_THIRD_PARTY_DIR,
84 'handlebar', 84 'motemplate',
85 '__init__.py'), 'a') as f: 85 '__init__.py'), 'a') as f:
86 f.write('from handlebar import Handlebar\n') 86 f.write('from motemplate import Motemplate\n')
87 87
88 if __name__ == '__main__': 88 if __name__ == '__main__':
89 main() 89 main()
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/README ('k') | chrome/common/extensions/docs/server2/compiled_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698