Last change
on this file since 2425 was 766, checked in by mar637, 19 years ago |
script wasn't update to release 1.2
|
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1022 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | prefix=/usr/local
|
---|
4 | pypath=${prefix}/lib/python2.3
|
---|
5 | base=`pwd`
|
---|
6 |
|
---|
7 | if [ ! -d ${pypath} ]; then
|
---|
8 | echo "python2.3 not installed"
|
---|
9 | exit 1
|
---|
10 | else
|
---|
11 | if [ -d "${pypath}/site-packages/asap" ]; then
|
---|
12 | echo "removing old asap module"
|
---|
13 | rm -f ${pypath}/site-packages/asap/*
|
---|
14 | else
|
---|
15 | mkdir "${pypath}/site-packages/asap"
|
---|
16 | fi
|
---|
17 | echo "installing asap python module"
|
---|
18 | cp build/* ${pypath}/site-packages/asap
|
---|
19 | echo "installing asap startup script"
|
---|
20 | cp bin/asap /usr/local/bin
|
---|
21 | fi
|
---|
22 |
|
---|
23 | if [ ! -d ${prefix}/share/asap ]; then
|
---|
24 | echo "creating asap data directory"
|
---|
25 | mkdir ${prefix}/share/asap
|
---|
26 | fi
|
---|
27 |
|
---|
28 | cp share/ipythonrc-asap /usr/local/share/asap/
|
---|
29 |
|
---|
30 | if [ -d /usr/local/share/asap/data ]; then
|
---|
31 | echo "removing old data directory"
|
---|
32 | rm -rf /usr/local/share/asap/data
|
---|
33 | fi
|
---|
34 |
|
---|
35 | echo "extracting and installing asap data directory"
|
---|
36 | cd /usr/local/share/asap
|
---|
37 | tar jxf ${base}/share/data.tar.bz2
|
---|
38 | echo "The asap python module has been installed in"
|
---|
39 | echo " ${pypath}/site-packages"
|
---|
40 | echo "asap data is in ${prefix}/share/asap"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.