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

Side by Side Diff: chrome_linux64/installer/debian/build.sh

Issue 310483004: Roll reference builds to 35.0.1916.114. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/reference_builds/
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « chrome_linux64/installer/common/wrapper ('k') | chrome_linux64/installer/debian/expected_deps » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 # intrusive of a change for these limited use channels, so we'll just hack 58 # intrusive of a change for these limited use channels, so we'll just hack
59 # it into the wrapper script. The user can still override since it seems to 59 # it into the wrapper script. The user can still override since it seems to
60 # work to specify --user-data-dir multiple times on the command line, with 60 # work to specify --user-data-dir multiple times on the command line, with
61 # the last occurrence winning. 61 # the last occurrence winning.
62 local SXS_USER_DATA_DIR="\${XDG_CONFIG_HOME:-\${HOME}/.config}/${PACKAGE}-${ CHANNEL}" 62 local SXS_USER_DATA_DIR="\${XDG_CONFIG_HOME:-\${HOME}/.config}/${PACKAGE}-${ CHANNEL}"
63 local DEFAULT_FLAGS="--user-data-dir=\"${SXS_USER_DATA_DIR}\"" 63 local DEFAULT_FLAGS="--user-data-dir=\"${SXS_USER_DATA_DIR}\""
64 64
65 # Avoid file collisions between channels. 65 # Avoid file collisions between channels.
66 local INSTALLDIR="${INSTALLDIR}-${CHANNEL}" 66 local INSTALLDIR="${INSTALLDIR}-${CHANNEL}"
67 67
68 # TODO(phajdan.jr): Do that for all packages for SxS, 68 local PACKAGE="${PACKAGE}-${CHANNEL}"
69 # http://crbug.com/38598 .
70 if [ "$CHANNEL" = "trunk" ] || [ "$CHANNEL" = "asan" ]; then
71 local PACKAGE="${PACKAGE}-${CHANNEL}"
72 fi
73 69
74 # Make it possible to distinguish between menu entries 70 # Make it possible to distinguish between menu entries
75 # for different channels. 71 # for different channels.
76 local MENUNAME="${MENUNAME} (${CHANNEL})" 72 local MENUNAME="${MENUNAME} (${CHANNEL})"
77 fi 73 fi
78 prep_staging_debian 74 prep_staging_debian
79 stage_install_common 75 stage_install_common
80 echo "Staging Debian install files in '${STAGEDIR}'..." 76 echo "Staging Debian install files in '${STAGEDIR}'..."
81 install -m 755 -d "${STAGEDIR}/${INSTALLDIR}/cron" 77 install -m 755 -d "${STAGEDIR}/${INSTALLDIR}/cron"
82 process_template "${BUILDDIR}/installer/common/repo.cron" \ 78 process_template "${BUILDDIR}/installer/common/repo.cron" \
(...skipping 14 matching lines...) Expand all
97 process_template "${BUILDDIR}/installer/debian/postrm" \ 93 process_template "${BUILDDIR}/installer/debian/postrm" \
98 "${STAGEDIR}/DEBIAN/postrm" 94 "${STAGEDIR}/DEBIAN/postrm"
99 chmod 755 "${STAGEDIR}/DEBIAN/postrm" 95 chmod 755 "${STAGEDIR}/DEBIAN/postrm"
100 } 96 }
101 97
102 # Actually generate the package file. 98 # Actually generate the package file.
103 do_package() { 99 do_package() {
104 echo "Packaging ${ARCHITECTURE}..." 100 echo "Packaging ${ARCHITECTURE}..."
105 PREDEPENDS="$COMMON_PREDEPS" 101 PREDEPENDS="$COMMON_PREDEPS"
106 DEPENDS="${COMMON_DEPS}" 102 DEPENDS="${COMMON_DEPS}"
107 # Trunk is a special package, mostly for development testing, so don't make 103 REPLACES=""
108 # it replace any installed release packages. 104 CONFLICTS=""
109 if [ "$CHANNEL" != "trunk" ] && [ "$CHANNEL" != "asan" ]; then 105 PROVIDES="www-browser"
110 REPLACES="${PACKAGE}"
111 CONFLICTS="${PACKAGE}"
112 PROVIDES="${PACKAGE}, www-browser"
113 fi
114 gen_changelog 106 gen_changelog
115 process_template "${SCRIPTDIR}/control.template" "${DEB_CONTROL}" 107 process_template "${SCRIPTDIR}/control.template" "${DEB_CONTROL}"
116 export DEB_HOST_ARCH="${ARCHITECTURE}" 108 export DEB_HOST_ARCH="${ARCHITECTURE}"
117 if [ -f "${DEB_CONTROL}" ]; then 109 if [ -f "${DEB_CONTROL}" ]; then
118 gen_control 110 gen_control
119 fi 111 fi
120 fakeroot dpkg-deb -Zlzma -b "${STAGEDIR}" . 112 fakeroot dpkg-deb -Zlzma -b "${STAGEDIR}" .
121 } 113 }
122 114
123 # Remove temporary files and unwanted packaging output. 115 # Remove temporary files and unwanted packaging output.
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 ;; 322 ;;
331 * ) 323 * )
332 echo 324 echo
333 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'." 325 echo "ERROR: Don't know how to build DEBs for '$TARGETARCH'."
334 echo 326 echo
335 exit 1 327 exit 1
336 ;; 328 ;;
337 esac 329 esac
338 330
339 do_package 331 do_package
OLDNEW
« no previous file with comments | « chrome_linux64/installer/common/wrapper ('k') | chrome_linux64/installer/debian/expected_deps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698