OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/bash | |
2 | |
3 # Copyright (c) 2010 The Chromium Authors. All rights reserved. | |
4 # Use of this source code is governed by a BSD-style license that can be | |
5 # found in the LICENSE file. | |
6 | |
7 set -e | |
8 | |
9 if [[ ${#} -ne 4 ]]; then | |
10 echo "usage: ${0} APP_NAME IDENTIFIER SOURCE DESTINATION" >&2 | |
11 exit 1 | |
12 fi | |
13 | |
14 APP_NAME="${1}" | |
15 IDENTIFIER=${2} | |
16 SOURCE=${3} | |
17 DESTINATION=${4} | |
18 | |
19 # All hail sed. | |
20 exec sed -e "s/@APP_NAME@/${APP_NAME}/g" \ | |
21 -e "s/@CHROMIUM_BUNDLE_ID@/${IDENTIFIER}/g" \ | |
22 "${SOURCE}" > "${DESTINATION}" | |
OLD | NEW |