[email protected] | 9f4bd34 | 2012-05-23 00:04:44 | [diff] [blame] | 1 | #!/bin/sh |
2 | |||||
3 | # Copyright (c) 2012 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 | |||||
[email protected] | 1a9acf6 | 2014-03-28 05:22:00 | [diff] [blame] | 7 | ME2ME_HOST="/Library/PrivilegedHelperTools/ChromeRemoteDesktopHost.bundle" |
[email protected] | 345dfe8 | 2012-09-12 18:00:28 | [diff] [blame] | 8 | UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app" |
9 | UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app" | ||||
[email protected] | 9f4bd34 | 2012-05-23 00:04:44 | [diff] [blame] | 10 | KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle" |
11 | |||||
12 | INFO_PLIST="Contents/Info.plist" | ||||
13 | |||||
14 | set -e -u | ||||
15 | |||||
16 | function print_plist_version { | ||||
17 | local name="${1}" | ||||
18 | local file="${2}" | ||||
[email protected] | 345dfe8 | 2012-09-12 18:00:28 | [diff] [blame] | 19 | if [[ -e "${file}/${INFO_PLIST}" ]]; then |
20 | set `PlistBuddy -c 'Print CFBundleVersion' "${file}/${INFO_PLIST}"` | ||||
21 | echo "${name}: version = ${1}" | ||||
22 | else | ||||
23 | echo "${name}: plist doesn't exist" | ||||
24 | fi | ||||
[email protected] | 9f4bd34 | 2012-05-23 00:04:44 | [diff] [blame] | 25 | } |
26 | |||||
27 | print_plist_version "Me2me host" "${ME2ME_HOST}" | ||||
[email protected] | 345dfe8 | 2012-09-12 18:00:28 | [diff] [blame] | 28 | print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHROME}" |
29 | print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}" | ||||
[email protected] | 9f4bd34 | 2012-05-23 00:04:44 | [diff] [blame] | 30 | print_plist_version "Keystone" "${KEYSTONE}" |