OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # | 2 # |
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
6 # | 6 # |
7 | 7 |
8 # Script to build a Debian packages from a Dart tarball. The script | 8 # Script to build a Debian packages from a Dart tarball. The script |
9 # will build a source package and a 32-bit (i386) and 64-bit (amd64) | 9 # will build a source package and a 32-bit (i386) and 64-bit (amd64) |
10 # binary packages. | 10 # binary packages. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 if 'armel' in arch: | 94 if 'armel' in arch: |
95 print "Building armel package" | 95 print "Building armel package" |
96 RunBuildPackage( | 96 RunBuildPackage( |
97 ['-B', '-aarmel', '-us', '-uc'], join(temp_dir, tarroot), toolchain) | 97 ['-B', '-aarmel', '-us', '-uc'], join(temp_dir, tarroot), toolchain) |
98 | 98 |
99 # Copy the Debian package files to the build directory. | 99 # Copy the Debian package files to the build directory. |
100 debbase = 'dart_%s' % version | 100 debbase = 'dart_%s' % version |
101 source_package = [ | 101 source_package = [ |
102 '%s-1.dsc' % debbase, | 102 '%s-1.dsc' % debbase, |
103 '%s.orig.tar.gz' % debbase, | 103 '%s.orig.tar.gz' % debbase, |
104 '%s-1.debian.tar.gz' % debbase | 104 '%s-1.debian.tar.xz' % debbase |
105 ] | 105 ] |
106 i386_package = [ | 106 i386_package = [ |
107 '%s-1_i386.deb' % debbase | 107 '%s-1_i386.deb' % debbase |
108 ] | 108 ] |
109 amd64_package = [ | 109 amd64_package = [ |
110 '%s-1_amd64.deb' % debbase | 110 '%s-1_amd64.deb' % debbase |
111 ] | 111 ] |
112 armhf_package = [ | 112 armhf_package = [ |
113 '%s-1_armhf.deb' % debbase | 113 '%s-1_armhf.deb' % debbase |
114 ] | 114 ] |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 | 149 |
150 if not tar_filename: | 150 if not tar_filename: |
151 tar_filename = join(DART_DIR, | 151 tar_filename = join(DART_DIR, |
152 utils.GetBuildDir(HOST_OS), | 152 utils.GetBuildDir(HOST_OS), |
153 'dart-%s.tar.gz' % utils.GetVersion()) | 153 'dart-%s.tar.gz' % utils.GetVersion()) |
154 | 154 |
155 BuildDebianPackage(tar_filename, out_dir, arch, options.toolchain) | 155 BuildDebianPackage(tar_filename, out_dir, arch, options.toolchain) |
156 | 156 |
157 if __name__ == '__main__': | 157 if __name__ == '__main__': |
158 sys.exit(Main()) | 158 sys.exit(Main()) |
OLD | NEW |