Skip to content

Instantly share code, notes, and snippets.

@joshmoore
Created November 25, 2011 09:42
Show Gist options
  • Save joshmoore/1393149 to your computer and use it in GitHub Desktop.
Save joshmoore/1393149 to your computer and use it in GitHub Desktop.
Switch between zeroc-ice33 and zeroc-ice34 formulae
# See Formula in https://github.com/joshmoore/homebrew/tree/omero-only
#
# Use: git remote add omero git@github.com:joshmoore/homebrew.git
# git fetch omero
# git merge omero/omero-only
#
ice33() {
VERSION=`slice2java --version 2>&1`
if [[ "$VERSION" != "3.3.1" ]];
then
brew unlink zeroc-ice34
brew link zeroc-ice33
fi
export HOMEBREW=/usr/local
export ICE_HOME=`$HOMEBREW/bin/brew --prefix zeroc-ice33`
export SLICE_HOME=$ICE_HOME/slice
echo $ICE_HOME
export DYLD_LIBRARY_PATH=$ICE_HOME/lib:$ICE_HOME/python:$DYLD_LIBRARY_PATH
export PYTHONPATH=$ICE_HOME/python:$PYTHONPATH:/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC/
}
ice34() {
VERSION=`slice2java --version 2>&1`
if [[ "$VERSION" != "3.4.2" ]];
then
brew unlink zeroc-ice33
brew link zeroc-ice34
fi
export HOMEBREW=/usr/local
export ICE_HOME=`$HOMEBREW/bin/brew --prefix zeroc-ice34`
export SLICE_HOME=$ICE_HOME/slice
echo $ICE_HOME
export DYLD_LIBRARY_PATH=$ICE_HOME/lib:$ICE_HOME/python:$DYLD_LIBRARY_PATH
export PYTHONPATH=$ICE_HOME/python:$PYTHONPATH:/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/PyObjC/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment