Bug 818333 - Make confvars.sh for desktop the same across branches where possible. r=glandium, a=akeybl
authorRobert Strong <robert.bugzilla@gmail.com>
Tue, 18 Dec 2012 12:29:47 -0800
changeset 118947 fddab01e981f8b722709de5af6f75e47b484aeeb
parent 118946 90c64bebd52d1888d5c301983b2520fe80e21e30
child 118948 3d1343748fc7d10f2f5f748e855de86a7855798f
push id2996
push userrstrong@mozilla.com
push dateTue, 18 Dec 2012 20:30:51 +0000
treeherdermozilla-aurora@fddab01e981f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, akeybl
bugs818333
milestone19.0a2
Bug 818333 - Make confvars.sh for desktop the same across branches where possible. r=glandium, a=akeybl
browser/confvars.sh
--- a/browser/confvars.sh
+++ b/browser/confvars.sh
@@ -18,40 +18,58 @@ if test "$OS_ARCH" = "WINNT"; then
             "$MOZ_UPDATE_CHANNEL" = "release"; then
       if ! test "$MOZ_DEBUG"; then
         MOZ_STUB_INSTALLER=1
       fi
     fi
   fi
 fi
 
+# The value of ACCEPTED_MAR_CHANNEL_IDS should usually be the same as the value
+# MAR_CHANNEL_ID. If more than one ID is needed, then you should use a comma
+# separated list of values.
+# The MAR_CHANNEL_ID must not contain the following 3 characters: ",\t "
+case "$MOZ_UPDATE_CHANNEL" in
+release|aurora|esr)
+  ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-$MOZ_UPDATE_CHANNEL
+  MAR_CHANNEL_ID=firefox-mozilla-$MOZ_UPDATE_CHANNEL
+  ;;
+beta)
+  ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-beta,firefox-mozilla-release
+  MAR_CHANNEL_ID=firefox-mozilla-beta
+  ;;
+*)
+  ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-central
+  MAR_CHANNEL_ID=firefox-mozilla-central
+  ;;
+esac
+
+# MOZ_APP_DISPLAYNAME will be set by branding/configure.sh
+# Changing MOZ_*BRANDING_DIRECTORY requires a clobber to ensure correct results,
+# because branding dependencies are broken.
+# MOZ_BRANDING_DIRECTORY is the default branding directory used when none is
+# specified. It should never point to the "official" branding directory.
+# For mozilla-beta, mozilla-release, or mozilla-central repositories, use
+# "nightly" branding (until bug 659568 is fixed).
+# For the mozilla-aurora repository, use "aurora".
+MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding/official
+if test "$MOZ_UPDATE_CHANNEL" = "aurora"; then
+  MOZ_BRANDING_DIRECTORY=browser/branding/aurora
+else
+  MOZ_BRANDING_DIRECTORY=browser/branding/nightly
+fi
+
 MOZ_CHROME_FILE_FORMAT=omni
 MOZ_SAFE_BROWSING=1
 MOZ_SERVICES_AITC=1
 MOZ_SERVICES_COMMON=1
 MOZ_SERVICES_CRYPTO=1
 MOZ_SERVICES_METRICS=1
 MOZ_SERVICES_NOTIFICATIONS=1
 MOZ_SERVICES_SYNC=1
 MOZ_APP_VERSION=$FIREFOX_VERSION
 MOZ_EXTENSIONS_DEFAULT=" gio"
-# MOZ_APP_DISPLAYNAME will be set by branding/configure.sh
-# Changing MOZ_*BRANDING_DIRECTORY requires a clobber to ensure correct results,
-# because branding dependencies are broken.
-# MOZ_BRANDING_DIRECTORY is the default branding directory used when none is
-# specified. It should never point to the "official" branding directory.
-# For mozilla-beta, mozilla-release, or mozilla-central repositories, use
-# "nightly" branding (until bug 659568 is fixed).
-# For the mozilla-aurora repository, use "aurora".
-MOZ_BRANDING_DIRECTORY=browser/branding/aurora
-MOZ_OFFICIAL_BRANDING_DIRECTORY=browser/branding/official
 MOZ_APP_ID={ec8030f7-c20a-464f-9b0e-13a3a9e97384}
-# This should usually be the same as the value MAR_CHANNEL_ID.
-# If more than one ID is needed, then you should use a comma separated list
-# of values.
-ACCEPTED_MAR_CHANNEL_IDS=firefox-mozilla-aurora
-# The MAR_CHANNEL_ID must not contain the following 3 characters: ",\t "
-MAR_CHANNEL_ID=firefox-mozilla-aurora
 MOZ_PROFILE_MIGRATOR=1
 MOZ_EXTENSION_MANAGER=1
 MOZ_APP_STATIC_INI=1
 MOZ_WEBAPP_RUNTIME=1
 MOZ_MEDIA_NAVIGATOR=1