Skip to content
Snippets Groups Projects
Commit 5e58c5c3 authored by Keith Thorne's avatar Keith Thorne
Browse files

Add install-adclist option

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@4055 6dcd42c9-f523-4c6d-aada-af552506706e
parent 2c738a83
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
#
# Install one system
if [ "$#" -ne 2 ];then
echo "pls state the name of the system to install and the source code directory";
exit 1;
else
system=$1;
srcdir=$2;
fi
upper_system=`echo $system | tr a-z A-Z`
hostname=`grep TARGET_HOST_NAME src/include/${system}.h | head -1 | awk '{print $3}'`
site=`grep site= target/${system}epics/${system}epics*.cmd | sed 's/.*site=\([a-z]*\).*/\1/g'`
if test ${site}no = no; then echo Please make $system first; exit 1; fi
upper_site=`echo $site | tr a-z A-Z`
site_letter=M
if test ${site} = llo; then site_letter=L; fi
if test ${site} = lho; then site_letter=H; fi
if test ${site} = geo; then site_letter=G; fi
if test ${site} = caltech; then site_letter=C; fi
if test ${site} = tst; then site_letter=X; fi
if test ${site} = stn; then site_letter=S; fi
ifo=`grep ifo= target/${system}epics/${system}epics*.cmd | head -1 |sed 's/.*ifo=\([a-zA-Z0-9]*\).*/\1/g'`
lower_ifo=`echo $ifo | tr A-Z a-z`
/bin/mkdir -p /opt/rtcds/${site}/${lower_ifo}/chans/adc
/bin/cp -p build/${system}epics/config/adcListSorted.txt /opt/rtcds/${site}/${lower_ifo}/chans/adc/${system}_adclist.txt
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment