| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client 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 scripts generates an HTTP2 file system from a set of files. | 6 # This scripts generates an HTTP2 file system from a set of files. |
| 7 # File description comes from a configuration file (the first command line | 7 # File description comes from a configuration file (the first command line |
| 8 # argument), which is a python script that defines the following variables: | 8 # argument), which is a python script that defines the following variables: |
| 9 # srcdir = "/path/to/the/input/directory" | 9 # srcdir = "/path/to/the/input/directory" |
| 10 # destdir = "/path/to/the/output/directory" | 10 # destdir = "/path/to/the/output/directory" |
| 11 # manifest = "prefix of the manifest file name (output)" | 11 # manifest = "prefix of the manifest file name (output)" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 misc_files = list_pack_contents([['*', '*', '']]) | 111 misc_files = list_pack_contents([['*', '*', '']]) |
| 112 for misc_file in misc_files: | 112 for misc_file in misc_files: |
| 113 manifest_data = build_pack([misc_file], destdir, misc_file) | 113 manifest_data = build_pack([misc_file], destdir, misc_file) |
| 114 fmanifest.write(manifest_data) | 114 fmanifest.write(manifest_data) |
| 115 | 115 |
| 116 fmanifest.close() | 116 fmanifest.close() |
| 117 | 117 |
| 118 # And the icing on the cake: pack the manifest itself | 118 # And the icing on the cake: pack the manifest itself |
| 119 build_pack([manifest_tmp], destdir, manifest) | 119 build_pack([manifest_tmp], destdir, manifest) |
| 120 os.unlink(manifest_tmp) | 120 os.unlink(manifest_tmp) |
| OLD | NEW |