Changeset 512 for trunk/bin


Ignore:
Timestamp:
02/23/05 16:14:56 (20 years ago)
Author:
mar637
Message:

added installation of contenst of bin directory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/install.sh

    r372 r512  
    1010if [ x"$NARRABRI_ASAP" = xyes ];
    1111then
    12 ASAPDIR='/DATA/KAPUTAR_2/vor010/ASAP/site-packages/asap'
    13 SRCDIR='/DATA/KAPUTAR_2/vor010/ASAP/asap'
     12    ASAPDIR='/DATA/KAPUTAR_2/vor010/ASAP/site-packages/asap'
     13    SRCDIR='/DATA/KAPUTAR_2/vor010/ASAP/asap'
     14    BINDIR='/DATA/KAPUTAR_2/vor010/ASAP/'
    1415else
    15 ASAPDIR='/usr/local/lib/python2.3/site-packages/asap'
    16 SRCDIR='/u/mar637/brage/singledish/asap'
     16    ASAPDIR='/usr/local/lib/python2.3/site-packages/asap'
     17    SRCDIR='/u/mar637/asap'
     18    BINDIR='/usr/local/bin'
    1719fi
    1820#
    19 
    2021# check to allow setup via command line parameters
    2122if [ x"$1" != x ];
    2223then
    23 ASAPDIR=$1
    24 echo "ASAP will be installed into "$ASAPDIR
     24    ASAPDIR=$1
     25    echo "ASAP will be installed into "$ASAPDIR
    2526fi
    2627
    2728if [ x"$2" != x ];
    2829then
    29 SRCDIR=$2
    30 echo "from "$SRCDIR
     30    SRCDIR=$2
     31    echo "from "$SRCDIR
     32fi
     33
     34if [ x"$3" != x ];
     35then
     36    BINDIR=$3
     37    echo "Executables go into $BINDIR"
    3138fi
    3239
     
    3542# where the library modules is
    3643libdir='lib'
     44bindir='bin'
    3745# the python files to install
    3846srcfiles="__init__.py asapmath.py scantable.py asapreader.py asaplot.py asapfitter.py asapplotter.py asaplinefind.py"
     47
    3948# the libraries to install
    4049libfiles='_asap.so'
     50binfiles='asap'
    4151
    4252#if [ -d ${SHAREDIR} ] ; then
     
    7181    cp -f ${SRCDIR}/${libdir}/${f} ${ASAPDIR}/
    7282done
    73 chmod -R g+w ${ASAPDIR}
     83
     84for f in ${binfiles}
     85do
     86    cp -f ${SRCDIR}/${bindir}/${f} ${BINDIR}/
     87done
     88
     89#chmod -R g+w ${ASAPDIR}
    7490echo "Successfully installed the asap module into ${ASAPDIR}"
    75 
    76 
Note: See TracChangeset for help on using the changeset viewer.