Home | History | Annotate | Download | only in tools
      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 
      7 ME2ME_HOST="/Library/PrivilegedHelperTools/ChromeRemoteDesktopHost.bundle"
      8 UNINSTALLER_CHROME="/Applications/Chrome Remote Desktop Host Uninstaller.app"
      9 UNINSTALLER_CHROMIUM="/Applications/Chromoting Host Uninstaller.app"
     10 PREFPANE="/Library/PreferencePanes/ChromeRemoteDesktop.prefPane"
     11 KEYSTONE="/Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle"
     12 
     13 INFO_PLIST="Contents/Info.plist"
     14 
     15 set -e -u
     16 
     17 function 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 
     28 print_plist_version "Me2me host" "${ME2ME_HOST}"
     29 print_plist_version "Chrome Remote Desktop Host Uninstaller" "${UNINSTALLER_CHROME}"
     30 print_plist_version "Chromoting Host Uninstaller" "${UNINSTALLER_CHROMIUM}"
     31 print_plist_version "PreferencePane" "${PREFPANE}"
     32 print_plist_version "Keystone" "${KEYSTONE}"
     33