Created
November 25, 2011 09:42
-
-
Save joshmoore/1393149 to your computer and use it in GitHub Desktop.
Switch between zeroc-ice33 and zeroc-ice34 formulae
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# See Formula in https://github.com/joshmoore/homebrew/tree/omero-only | |
# | |
# Use: git remote add omero [email protected]: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