source: trunk/bin/install.sh@ 315

Last change on this file since 315 was 297, checked in by vor010, 20 years ago

SDLineFinder: C++ class and python binder
have been added. This is an initial version, but it works in some simple

cases. Makefile and install.sh were updated to account for new source files

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1#!/bin/sh
2
3########################################
4# #
5# Install the asap python module #
6# #
7########################################
8
9# temporary check to allow the same file for Narrabri and Epping
10if [ x"$NARRABRI_ASAP" = xyes ];
11then
12ASAPDIR='/DATA/KAPUTAR_2/vor010/ASAP/site-packages/asap'
13SRCDIR='/DATA/KAPUTAR_2/vor010/ASAP/asap'
14else
15ASAPDIR='/usr/local/lib/python2.3/site-packages/asap'
16SRCDIR='/u/mar637/brage/singledish/asap'
17fi
18#
19
20# where the source python files are
21pydir='python'
22# where the library modules is
23libdir='lib'
24# the python files to install
25srcfiles="__init__.py asapmath.py scantable.py asapreader.py asaplot.py asapfitter.py asapplotter.py asaplinefind.py"
26# the libraries to install
27libfiles='_asap.so'
28
29#if [ -d ${SHAREDIR} ] ; then
30# echo "ASAP share dir already exists."
31#else
32# mkdir ${SHAREDIR}
33#fi
34
35# go to src dir
36if [ -d ${SRCDIR} ] ; then
37 cd ${SRCDIR}
38else
39 echo "No source directory found."
40 exit 0
41fi
42
43# check if the site-packes directory exists and create if necessary
44if [ -d ${ASAPDIR} ] ; then
45 echo "Using existing asap module dir."
46else
47 mkdir ${ASAPDIR}
48fi
49
50# install asap files
51for f in ${srcfiles}
52do
53 cp -f ${SRCDIR}/${pydir}/${f} ${ASAPDIR}/
54done
55
56for f in ${libfiles}
57do
58 cp -f ${SRCDIR}/${libdir}/${f} ${ASAPDIR}/
59done
60chmod -R g+w ${ASAPDIR}
61echo "Successfully installed the asap module into ${ASAPDIR}"
62
63
Note: See TracBrowser for help on using the repository browser.