Last change
on this file since 2676 was 2661, checked in by Malte Marquarding, 12 years ago |
fix program name
|
-
Property svn:executable
set to
*
|
File size:
1010 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | FTPURL="ftp://ftp.atnf.csiro.au/pub/software/asap"
|
---|
4 |
|
---|
5 | #test -n $1 && export http_proxy=$1
|
---|
6 |
|
---|
7 | if [ `id -u` -ne 0 ]; then
|
---|
8 | echo "$0: Must be executed by root (sudo)"
|
---|
9 | exit 1
|
---|
10 | fi
|
---|
11 | ASAPVERS=4.1
|
---|
12 | OSXVERS=$(sw_vers | grep -o '10\.[7-8]')
|
---|
13 | echo $OSXVERS
|
---|
14 | if [ -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"
|
---|
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..."
|
---|
22 | /usr/bin/easy_install-2.7 -U ${MPLEGG}
|
---|
23 | fi
|
---|
24 |
|
---|
25 | # This should pull in IPython if required
|
---|
26 | /usr/bin/easy_install-2.7 -U ${ASAPEGG}
|
---|
27 |
|
---|
28 | # make sure readline is installed
|
---|
29 | /usr/bin/easy_install-2.7 readline
|
---|
30 |
|
---|
31 | # update measures data
|
---|
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.