diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-19 14:10:09 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-19 14:10:09 +0000 |
commit | 3c4beb226d1f279685d82861a062b599401cd2a9 (patch) | |
tree | 6139b36ab4eff4a66590a7a4ad5990ba9ac153b3 /build/mac/tweak_app_infoplist | |
parent | 136140cbfa6adc9caed9692eb664ff9c4a73482d (diff) | |
download | chromium_src-3c4beb226d1f279685d82861a062b599401cd2a9.zip chromium_src-3c4beb226d1f279685d82861a062b599401cd2a9.tar.gz chromium_src-3c4beb226d1f279685d82861a062b599401cd2a9.tar.bz2 |
Adding a general script to fetch values from the BRANDING files.
Update the scripts to fetch values from the BRANDING files instead of hardcoding the values.
Review URL: http://codereview.chromium.org/113555
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16372 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'build/mac/tweak_app_infoplist')
-rwxr-xr-x | build/mac/tweak_app_infoplist | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/build/mac/tweak_app_infoplist b/build/mac/tweak_app_infoplist index 5d40460..3a1f350 100755 --- a/build/mac/tweak_app_infoplist +++ b/build/mac/tweak_app_infoplist @@ -54,18 +54,13 @@ fi TOP="${SRCROOT}/.." BUILD_BRANDING=$1 -if [ "${BUILD_BRANDING}" == "Chromium" ]; then - APP_NAME="Chromium" -elif [ "${BUILD_BRANDING}" == "Chrome" ]; then - APP_NAME="Google Chrome" -else - echo "error: unknown branding: ${BUILD_BRANDING}" >&2 - exit 1 -fi -SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" +BRAND_SCRIPT="${TOP}/build/branding_value.sh" set -x +APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME) +SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app" + # Figure out what version this build corresponds to. Just use the svn revision # for now. Warning: my svnversion returns 10495:10552M. But that's ok since # it is just for reference. @@ -79,16 +74,8 @@ fi FULL_VERSION="${MAJOR}.${MINOR}.${BUILD}.${PATCH}" SHORT_VERSION="${MAJOR}.${MINOR}.${BUILD}" -# Load the branding file -if [ "${BUILD_BRANDING}" == "Chromium" ]; then - BRANDING_FILE="${TOP}/chrome/app/theme/chromium/BRANDING" -elif [ "${BUILD_BRANDING}" == "Chrome" ]; then - BRANDING_FILE="${TOP}/chrome/app/theme/google_chrome/BRANDING" -else - echo "error: unknown branding: ${BUILD_BRANDING}" >&2 - exit 1 -fi -COPYRIGHT_STRING=$(sed -n -e 's/^COPYRIGHT=\(.*\)$/\1/p' "${BRANDING_FILE}") +# Fetch the copyright +COPYRIGHT_STRING=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" COPYRIGHT) # Map (c) or (C) to the copyright sign COPYRIGHT_STRING=$(echo "${COPYRIGHT_STRING}" | sed -e $'s/([cC])/\302\251/g') |