Skip to content
Snippets Groups Projects
Commit 9a7917a1 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

better script.

parent 2fed9a35
No related branches found
No related tags found
No related merge requests found
...@@ -20,8 +20,8 @@ export HOMEBREW_BUILD_FROM_SOURCE=YES ...@@ -20,8 +20,8 @@ export HOMEBREW_BUILD_FROM_SOURCE=YES
## This is not needed. Forgot why I put it here in first place. ## This is not needed. Forgot why I put it here in first place.
#CFLAGS+=-march=native #CFLAGS+=-march=native
APPNAME="Moose" APPNAME="MOOSE"
VERSION="3.0.2" VERSION="3.1.2"
MAC_NAME=`sw_vers -productVersion` MAC_NAME=`sw_vers -productVersion`
PKGNAME="${APPNAME}_${VERSION}" PKGNAME="${APPNAME}_${VERSION}"
...@@ -73,18 +73,18 @@ export PATH=${BREW_PREFIX}/bin:$PATH ...@@ -73,18 +73,18 @@ export PATH=${BREW_PREFIX}/bin:$PATH
( (
cd $BREW_PREFIX cd $BREW_PREFIX
if [ ! -f $BREW_PREFIX/bin/brew ]; then if [ ! -f $BREW_PREFIX/bin/brew ]; then
curl -L https://github.com/Homebrew/homebrew/tarball/master | \ curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C $BREW_PREFIX
tar xz --strip 1 -C $BREW_PREFIX
else else
echo "[I] Brew exists. Not installing" echo "[I] Brew exists. Not installing"
fi fi
echo "Copying moose.rb and moogli.rb" echo "Copying moose.rb and moogli.rb"
cp $CURRDIR/../macosx/*.rb $BREW_PREFIX/Library/Formula/ rsync -azv --progress $CURRDIR/../macosx/*.rb $BREW_PREFIX/Library/Formula/
# This even works without python. # This even works without python.
## NOTE: DO NOT install matplotlib using brew unless also installing python ## NOTE: DO NOT install matplotlib using brew unless also installing python
## using brew. Since we are going to uninstall later, use pip to install ## using brew. Since we are going to uninstall later, use pip to install
## matplotlib and numpy. ## matplotlib and numpy.
$BREW update
$BREW -v install homebrew/python/matplotlib --with-pyqt $BREW -v install homebrew/python/matplotlib --with-pyqt
$BREW -v install homebrew/python/numpy $BREW -v install homebrew/python/numpy
$BREW link --overwrite matplotlib $BREW link --overwrite matplotlib
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment