Last change
on this file since 2679 was 2661, checked in by Malte Marquarding, 12 years ago |
fix program name
|
-
Property svn:executable
set to
*
|
File size:
1010 bytes
|
Rev | Line | |
---|
[2655] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
| 3 | FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap"
|
---|
| 4 |
|
---|
[2661] | 5 | #test -n $1 && export http_proxy=$1
|
---|
| 6 |
|
---|
[2655] | 7 | if [ `id -u` -ne 0 ]; then
|
---|
[2661] | 8 | echo "$0: Must be executed by root (sudo)"
|
---|
[2655] | 9 | exit 1
|
---|
| 10 | fi
|
---|
| 11 | ASAPVERS=4.1
|
---|
| 12 | OSXVERS=$(sw_vers | grep -o '10\.[7-8]')
|
---|
[2656] | 13 | echo $OSXVERS
|
---|
| 14 | if [ -z ${OSXVERS} ]; then echo "Only OS X >= 10.7 supported"; exit 1; fi
|
---|
[2655] | 15 | ASAPEGG="${FTPURL}/${ASAPVERS}/asap-4.1.0-py2.7-macosx-${OSXVERS}-intel.egg"
|
---|
| 16 | MPLEGG="${FTPURL}/matplotlib/matplotlib-1.1.1-py2.7-macosx-${OSXVERS}-intel.egg"
|
---|
| 17 | MPL=$(/usr/bin/python -c 'import matplotlib' >/dev/null 2>&1)
|
---|
| 18 | # install matplotlib if not already there
|
---|
| 19 | if [ -n $? ]
|
---|
| 20 | then
|
---|
| 21 | echo "Matplotlib not installed. Installing from CASS ftp server..."
|
---|
[2656] | 22 | /usr/bin/easy_install-2.7 -U ${MPLEGG}
|
---|
[2655] | 23 | fi
|
---|
| 24 |
|
---|
| 25 | # This should pull in IPython if required
|
---|
[2656] | 26 | /usr/bin/easy_install-2.7 -U ${ASAPEGG}
|
---|
[2655] | 27 |
|
---|
| 28 | # make sure readline is installed
|
---|
| 29 | /usr/bin/easy_install-2.7 readline
|
---|
| 30 |
|
---|
| 31 | # update measures data
|
---|
[2656] | 32 | MPLTMP=/tmp/mpltmp
|
---|
| 33 | mkdir ${MPLTMP}
|
---|
| 34 | MPLCONFIGDIR="${MPLTMP}" /usr/local/bin/asap_update_data
|
---|
| 35 | rm -rf ${MPLTMP} |
---|
Note:
See
TracBrowser
for help on using the repository browser.