Commit fba59d04 authored by thakis@chromium.org's avatar thakis@chromium.org

mac: Make build_app_dmg more silent.

1.) Remove `set -x`
2.) Explicitly add '.dmg' extension to output, so pkg-dmg no longer
    warns about adding this implicitly
3.) Pass '--verbosity 0' to pkg-dmg to tell it to print only errors

If build_app_dmg needs to be debugged, it's easy to undo 1 and 3.
There's no need to have all this output on every single build.

BUG=none
TEST=`ninja all` has 38 lines less output.


Review URL: http://codereview.chromium.org/10073020

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132424 0039d316-1c4b-4281-b951-d872f2087c98
parent 3ac80bf0
#!/bin/sh
# Copyright (c) 2009 The Chromium Authors. All rights reserved.
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
......@@ -24,20 +24,18 @@ BRAND_SCRIPT="${TOP}/build/branding_value.sh"
BUILD_BRANDING=$1
# show things as we run them
set -x
APP_NAME=$("${BRAND_SCRIPT}" "${BUILD_BRANDING}" PRODUCT_FULLNAME)
DMG_NAME=$(echo "${APP_NAME}" | sed "s/ //g")
SRC_APP_PATH="${BUILT_PRODUCTS_DIR}/${APP_NAME}.app"
VOL_NAME="${APP_NAME}"
DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}"
DST_DMG_PATH="${BUILT_PRODUCTS_DIR}/${DMG_NAME}.dmg"
# Call the real working
"${PKG_DMG}" --source /var/empty \
--target "${DST_DMG_PATH}" \
--format UDBZ \
--verbosity 0 \
--volname "${VOL_NAME}" \
--tempdir "${TEMP_DIR}" \
--copy "${SRC_APP_PATH}/:/${APP_NAME}.app/"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment