summaryrefslogtreecommitdiffstats
path: root/chrome/tools/build/mac/copy_mcx_manifest.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/tools/build/mac/copy_mcx_manifest.sh')
-rwxr-xr-xchrome/tools/build/mac/copy_mcx_manifest.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/tools/build/mac/copy_mcx_manifest.sh b/chrome/tools/build/mac/copy_mcx_manifest.sh
new file mode 100755
index 0000000..fc4cbfc
--- /dev/null
+++ b/chrome/tools/build/mac/copy_mcx_manifest.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+# Copyright (c) 2010 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.
+
+set -e
+
+if [[ ${#} -ne 4 ]]; then
+ echo "usage: ${0} APP_NAME IDENTIFIER SOURCE DESTINATION" >&2
+ exit 1
+fi
+
+APP_NAME="${1}"
+IDENTIFIER=${2}
+SOURCE=${3}
+DESTINATION=${4}
+
+# All hail sed.
+exec sed -e "s/@APP_NAME@/${APP_NAME}/g" \
+ -e "s/@CHROMIUM_BUNDLE_ID@/${IDENTIFIER}/g" \
+ "${SOURCE}" > "${DESTINATION}"