blob: ffe1727374df5482813ac8b1175d6844c5da8a4b [file] [log] [blame]
[email protected]9f4bd342012-05-23 00:04:441#!/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]1a9acf62014-03-28 05:22:007ME2ME_HOST="/Library/PrivilegedHelperTools/ChromeRemoteDesktopHost.bundle"
[email protected]345dfe82012-09-12 18:00:288UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app"
9UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app"
[email protected]9f4bd342012-05-23 00:04:4410KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle"
11
12INFO_PLIST="Contents/Info.plist"
13
14set -e -u
15
16function print_plist_version {
17 local name="${1}"
18 local file="${2}"
[email protected]345dfe82012-09-12 18:00:2819 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]9f4bd342012-05-23 00:04:4425}
26
27print_plist_version "Me2me host" "${ME2ME_HOST}"
[email protected]345dfe82012-09-12 18:00:2828print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHROME}"
29print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}"
[email protected]9f4bd342012-05-23 00:04:4430print_plist_version "Keystone" "${KEYSTONE}"