1#!/bin/sh
2
3##
4# Pre-Install / Pre-Upgrade Script for Macintosh BOINC Manager for OS X revised 5/28/08
5##
6
7# If we are replacing an earlier GridRepublic installation, fix the data directory name before installing
8## We don't customize BOINC Data directory name for branding
9## mv -n "/Library/Application Support/GridRepublic Data" "/Library/Application Support/BOINC Data"
10
11# Delete old World Community Grid Skins
12##sudo rm -fR /Library/Application\ Support/BOINC\ Data/skins/World\ Community\ Grid/
13
14# Remove any old BOINC Manager and BOINC Screen Saver bundles to guarantee a clean install
15rm -fR "/Applications/BOINCManager.app"
16rm -fR "/Library/Screen Savers/BOINCSaver.saver"
17
18# Remove any old "BOINC Manager.mo" files before installing "BOINC-Manager.mo" files (or vice-versa)
19rm -fR "/Library/Application Support/BOINC Data/locale/"
20
21exit 0
22