| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright 2011, Google Inc. | 2 # Copyright 2011, Google Inc. |
| 3 # All rights reserved. | 3 # All rights reserved. |
| 4 # | 4 # |
| 5 # Redistribution and use in source and binary forms, with or without | 5 # Redistribution and use in source and binary forms, with or without |
| 6 # modification, are permitted provided that the following conditions are | 6 # modification, are permitted provided that the following conditions are |
| 7 # met: | 7 # met: |
| 8 # | 8 # |
| 9 # * Redistributions of source code must retain the above copyright | 9 # * Redistributions of source code must retain the above copyright |
| 10 # notice, this list of conditions and the following disclaimer. | 10 # notice, this list of conditions and the following disclaimer. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 import optparse | 34 import optparse |
| 35 import os | 35 import os |
| 36 import shutil | 36 import shutil |
| 37 import stat | 37 import stat |
| 38 import string | 38 import string |
| 39 import subprocess | 39 import subprocess |
| 40 import sys | 40 import sys |
| 41 | 41 |
| 42 # TODO(NaCl SDK team): Put tumbler back in the package when it's ported. | 42 # TODO(NaCl SDK team): Put tumbler back in the package when it's ported. |
| 43 IGNORE_PATTERN = ('.download*', '.svn*', '.gitignore*', '.git*', 'tumbler*', | 43 IGNORE_PATTERN = ('.download*', '.svn*', '.gitignore*', '.git*', 'tumbler*', |
| 44 'cygwin*', 'toolchain*') | 44 'cygwin*') |
| 45 INSTALLER_DIRS = ['examples', | 45 INSTALLER_DIRS = ['examples', |
| 46 'project_templates', | 46 'project_templates', |
| 47 'third_party'] | 47 'third_party'] |
| 48 INSTALLER_FILES = ['AUTHORS', | 48 INSTALLER_FILES = ['AUTHORS', |
| 49 'COPYING', | 49 'COPYING', |
| 50 'LICENSE', | 50 'LICENSE', |
| 51 'NOTICE', | 51 'NOTICE', |
| 52 'README'] | 52 'README'] |
| 53 | 53 |
| 54 def RawVersion(): | 54 def RawVersion(): |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 else: | 226 else: |
| 227 print "Can not create NSIS script (even after 100 tries)" | 227 print "Can not create NSIS script (even after 100 tries)" |
| 228 | 228 |
| 229 # Clean up. | 229 # Clean up. |
| 230 os.chdir(home_dir) | 230 os.chdir(home_dir) |
| 231 shutil.rmtree(temp_dir) | 231 shutil.rmtree(temp_dir) |
| 232 | 232 |
| 233 | 233 |
| 234 if __name__ == '__main__': | 234 if __name__ == '__main__': |
| 235 main(sys.argv[1:]) | 235 main(sys.argv[1:]) |
| OLD | NEW |