source: branches/Release2.0/bin/install.sh@ 2651

Last change on this file since 2651 was 770, checked in by mar637, 19 years ago

merge from Release12

  • 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
3prefix=/usr/local
4pypath=${prefix}/lib/python2.3
5base=`pwd`
6
7if [ ! -d ${pypath} ]; then
8 echo "python2.3 not installed"
9 exit 1
10else
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
21fi
22
23if [ ! -d ${prefix}/share/asap ]; then
24 echo "creating asap data directory"
25 mkdir ${prefix}/share/asap
26fi
27
28cp share/ipythonrc-asap /usr/local/share/asap/
29
30if [ -d /usr/local/share/asap/data ]; then
31 echo "removing old data directory"
32 rm -rf /usr/local/share/asap/data
33fi
34
35echo "extracting and installing asap data directory"
36cd /usr/local/share/asap
37tar jxf ${base}/share/data.tar.bz2
38echo "The asap python module has been installed in"
39echo " ${pypath}/site-packages"
40echo "asap data is in ${prefix}/share/asap"
Note: See TracBrowser for help on using the repository browser.