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

Side by Side Diff: visual_studio/NativeClientVSAddIn/create_package.py

Issue 10908249: Remove windows line ending from repo files (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: fix copyright headers Created 8 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 Native Client Authors. All rights reserved.
noelallen1 2012/09/19 19:47:25 same
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 """Takes the output of the build step and zips the distributable package. 6 """Takes the output of the build step and zips the distributable package.
7 7
8 This script assumes the build script has been run to compile the add-in. 8 This script assumes the build script has been run to compile the add-in.
9 It zips up all files required for the add-in installation and places the 9 It zips up all files required for the add-in installation and places the
10 result in out/NativeClientVSAddin.zip 10 result in out/NativeClientVSAddin.zip
11 """ 11 """
12 12
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 file_name = os.path.basename(source_dest[0]) 115 file_name = os.path.basename(source_dest[0])
116 dest = os.path.join(source_dest[1], file_name) 116 dest = os.path.join(source_dest[1], file_name)
117 out_file.write(source_dest[0], dest, zipfile.ZIP_DEFLATED) 117 out_file.write(source_dest[0], dest, zipfile.ZIP_DEFLATED)
118 AddFolderToZip(RESOURCE_DIRECTORY, out_file) 118 AddFolderToZip(RESOURCE_DIRECTORY, out_file)
119 AddVersionModifiedAddinFile(out_file) 119 AddVersionModifiedAddinFile(out_file)
120 out_file.close() 120 out_file.close()
121 121
122 122
123 if __name__ == '__main__': 123 if __name__ == '__main__':
124 main() 124 main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698