source: branches/Release12/bin/install.sh@ 2907

Last change on this file since 2907 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
RevLine 
[756]1#!/bin/sh
2
[766]3prefix=/usr/local
4pypath=${prefix}/lib/python2.3
5base=`pwd`
[756]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
[766]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
[756]30if [ -d /usr/local/share/asap/data ]; then
31 echo "removing old data directory"
32 rm -rf /usr/local/share/asap/data
33fi
34
[766]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.