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

Unified Diff: chrome/installer/linux/debian/build.sh

Issue 1321573006: Remove env var dep from linux packaging. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/linux/rpm/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/linux/debian/build.sh
diff --git a/chrome/installer/linux/debian/build.sh b/chrome/installer/linux/debian/build.sh
index c79f036d011b1d380227f0cfbc8ec4287edd6835..bf84089ec4b71129e502c709931b7b5be7045841 100755
--- a/chrome/installer/linux/debian/build.sh
+++ b/chrome/installer/linux/debian/build.sh
@@ -122,11 +122,12 @@ cleanup() {
usage() {
echo "usage: $(basename $0) [-c channel] [-a target_arch] [-o 'dir'] "
- echo " [-b 'dir']"
+ echo " [-b 'dir'] -d branding"
echo "-c channel the package channel (trunk, asan, unstable, beta, stable)"
echo "-a arch package architecture (ia32 or x64)"
echo "-o dir package output directory [${OUTPUTDIR}]"
echo "-b dir build input directory [${BUILDDIR}]"
+ echo "-d brand either chromium or google_chrome"
echo "-h this help message"
}
@@ -161,7 +162,7 @@ verify_channel() {
}
process_opts() {
- while getopts ":o:b:c:a:h" OPTNAME
+ while getopts ":o:b:c:a:d:h" OPTNAME
do
case $OPTNAME in
o )
@@ -177,6 +178,9 @@ process_opts() {
a )
TARGETARCH="$OPTARG"
;;
+ d )
+ BRANDING="$OPTARG"
+ ;;
h )
usage
exit 0
@@ -224,7 +228,7 @@ source ${BUILDDIR}/installer/common/installer.include
get_version_info
VERSIONFULL="${VERSION}-${PACKAGE_RELEASE}"
-if [ "$CHROMIUM_BUILD" = "_google_chrome" ]; then
+if [ "$BRANDING" = "google_chrome" ]; then
source "${BUILDDIR}/installer/common/google-chrome.info"
else
source "${BUILDDIR}/installer/common/chromium-browser.info"
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/linux/rpm/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698