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

Unified Diff: chrome/installer/mac/make_sign_sh

Issue 2749014: Split sign.sh into two pieces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/mac/make_signers.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mac/make_sign_sh
===================================================================
--- chrome/installer/mac/make_sign_sh (revision 49433)
+++ chrome/installer/mac/make_sign_sh (working copy)
@@ -1,48 +0,0 @@
-#!/bin/sh
-
-# Copyright (c) 2009 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.
-
-# This script creates sign.sh, the script that will be used to sign the
-# application bundle and inner bundles. It also creates auxiliary files that
-# sign.sh needs to do its job, such as the custom resource rules used to sign
-# the outermost application bundle. These files are placed in the Packaging
-# directory next to the .app bundle. The packaging system is expected to run
-# sign.sh to sign everything.
-
-set -e
-
-if [ $# -ne 3 ] ; then
- echo "usage: ${0} PACKAGING_DIR MAC_PRODUCT_NAME VERSION" >& 2
- exit 1
-fi
-
-PACKAGING_DIR="${1}"
-MAC_PRODUCT_NAME="${2}"
-VERSION="${3}"
-
-INPUT_DIR="$(dirname "${0}")"
-SIGN_SH_IN_FILE="${INPUT_DIR}/sign.sh.in"
-SIGN_SH_FILE="${PACKAGING_DIR}/sign.sh"
-BROWSER_APP_RULES_IN_FILE="${INPUT_DIR}/app_resource_rules.plist.in"
-BROWSER_APP_RULES_FILE="${PACKAGING_DIR}/app_resource_rules.plist"
-
-# Double-backslash each dot: one backslash belongs in the regular expression,
-# and the other backslash tells sed not to treat the first backslash
-# specially.
-VERSION_REGEX="$(echo "${VERSION}" | sed -e 's/\./\\\\./g')"
-
-mkdir -p "${PACKAGING_DIR}"
-sed -e "s/@MAC_PRODUCT_NAME@/${MAC_PRODUCT_NAME}/g" \
- -e "s/@VERSION@/${VERSION}/g" \
- -e "s/@VERSION_REGEX@/${VERSION_REGEX}/g" \
- < "${SIGN_SH_IN_FILE}" \
- > "${SIGN_SH_FILE}"
-chmod +x "${SIGN_SH_FILE}"
-
-sed -e "s/@MAC_PRODUCT_NAME@/${MAC_PRODUCT_NAME}/g" \
- -e "s/@VERSION@/${VERSION}/g" \
- -e "s/@VERSION_REGEX@/${VERSION_REGEX}/g" \
- < "${BROWSER_APP_RULES_IN_FILE}" \
- > "${BROWSER_APP_RULES_FILE}"
« no previous file with comments | « chrome/chrome_installer.gypi ('k') | chrome/installer/mac/make_signers.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698