From 5e58c5c3e678ebafd135953c7c26b463f5498593 Mon Sep 17 00:00:00 2001
From: Keith Thorne <keith.thorne@ligo.org>
Date: Thu, 13 Aug 2015 21:17:02 +0000
Subject: [PATCH] Add install-adclist option

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@4055 6dcd42c9-f523-4c6d-aada-af552506706e
---
 install-adclist | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100755 install-adclist

diff --git a/install-adclist b/install-adclist
new file mode 100755
index 000000000..b7510c8ac
--- /dev/null
+++ b/install-adclist
@@ -0,0 +1,30 @@
+#!/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
+
-- 
GitLab