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 7ME2ME_HOST="/Library/PrivilegedHelperTools/org.chromium.chromoting.me2me_host.app" 8UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app" 9UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app" 10PREFPANE="/Library/PreferencePanes/org.chromium.chromoting.prefPane" 11KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle" 12 13INFO_PLIST="Contents/Info.plist" 14 15set -e -u 16 17function print_plist_version { 18 local name="${1}" 19 local file="${2}" 20 if [[ -e "${file}/${INFO_PLIST}" ]]; then 21 set `PlistBuddy -c 'Print CFBundleVersion' "${file}/${INFO_PLIST}"` 22 echo "${name}: version = ${1}" 23 else 24 echo "${name}: plist doesn't exist" 25 fi 26} 27 28print_plist_version "Me2me host" "${ME2ME_HOST}" 29print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHROME}" 30print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}" 31print_plist_version "PreferencePane" "${PREFPANE}" 32print_plist_version "Keystone" "${KEYSTONE}" 33