Changeset 2817


Ignore:
Timestamp:
07/02/13 10:33:59 (11 years ago)
Author:
Malte Marquarding
Message:

update OSX install script to use latest version; tidy up tmp dir handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install_osx.sh

    r2661 r2817  
    11#!/bin/sh
    22
     3MPLTMP=/tmp/mpltmp
    34FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap"
     5
     6trap 'rm -rf /tmp/mpltmp' EXIT
    47
    58#test -n $1 && export http_proxy=$1
     
    1316echo $OSXVERS
    1417if [ -z ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi
    15 ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg"
     18if [ "$OSXVERS" == '10.8' ]
     19then
     20    ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.2-py2.7-macosx-${OSXVERS}-intel.egg"
     21else
     22    ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg"
     23fi
    1624MPLEGG="${FTPURL}/matplotlib/matplotlib-1.1.1-py2.7-macosx-${OSXVERS}-intel.egg"
    1725MPL=$(/usr/bin/python -c 'import matplotlib' >/dev/null 2>&1)
     
    3038
    3139# update measures data
    32 MPLTMP=/tmp/mpltmp
    3340mkdir ${MPLTMP}
    34 MPLCONFIGDIR="${MPLTMP}" /usr/local/bin/asap_update_data
    35 rm -rf ${MPLTMP}
     41MPLCONFIGDIR="${MPLTMP}"
     42/usr/local/bin/asap_update_data
Note: See TracChangeset for help on using the changeset viewer.