OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 | 6 |
7 # TODO(mmoss) This currently only works with official builds, since non-official | 7 # TODO(mmoss) This currently only works with official builds, since non-official |
8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. | 8 # builds don't add the "${BUILDDIR}/installer/" files needed for packaging. |
9 | 9 |
10 set -e | 10 set -e |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 DEPENDS="${COMMON_DEPS}" | 103 DEPENDS="${COMMON_DEPS}" |
104 REPLACES="" | 104 REPLACES="" |
105 CONFLICTS="" | 105 CONFLICTS="" |
106 PROVIDES="www-browser" | 106 PROVIDES="www-browser" |
107 gen_changelog | 107 gen_changelog |
108 process_template "${SCRIPTDIR}/control.template" "${DEB_CONTROL}" | 108 process_template "${SCRIPTDIR}/control.template" "${DEB_CONTROL}" |
109 export DEB_HOST_ARCH="${ARCHITECTURE}" | 109 export DEB_HOST_ARCH="${ARCHITECTURE}" |
110 if [ -f "${DEB_CONTROL}" ]; then | 110 if [ -f "${DEB_CONTROL}" ]; then |
111 gen_control | 111 gen_control |
112 fi | 112 fi |
113 fakeroot dpkg-deb -Zlzma -b "${STAGEDIR}" . | 113 fakeroot dpkg-deb -Zxz -z9 -b "${STAGEDIR}" . |
114 } | 114 } |
115 | 115 |
116 # Remove temporary files and unwanted packaging output. | 116 # Remove temporary files and unwanted packaging output. |
117 cleanup() { | 117 cleanup() { |
118 echo "Cleaning..." | 118 echo "Cleaning..." |
119 rm -rf "${STAGEDIR}" | 119 rm -rf "${STAGEDIR}" |
120 rm -rf "${TMPFILEDIR}" | 120 rm -rf "${TMPFILEDIR}" |
121 } | 121 } |
122 | 122 |
123 usage() { | 123 usage() { |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 ;; | 317 ;; |
318 * ) | 318 * ) |
319 echo | 319 echo |
320 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." | 320 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." |
321 echo | 321 echo |
322 exit 1 | 322 exit 1 |
323 ;; | 323 ;; |
324 esac | 324 esac |
325 | 325 |
326 do_package | 326 do_package |
OLD | NEW |