From 0a9452abe15b26cd60b5729b9c62b08d8ac83c00 Mon Sep 17 00:00:00 2001
From: Alexander Ivanov <alexander.ivanov@ligo.org>
Date: Wed, 24 Jul 2013 00:29:59 +0000
Subject: [PATCH] Added a rule to print archiver database inserts for all
 setpoints.

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@3422 6dcd42c9-f523-4c6d-aada-af552506706e
---
 Makefile.in | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Makefile.in b/Makefile.in
index 5a5f7f73a..e1da0ee2e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -131,6 +131,10 @@ killWorld:
 showWorld:
 	@echo $(MDL_MODELS)
 
+# Extract all "ai" Epics record (setpoints) and print SQL commands to insert into the Archiver database
+settingsWorld:
+	@for i in $(MDL_MODELS); do grep grecord\(ai /opt/rtcds/lho/h1/target/$$i/$${i}epics/db/H1/$${i}1.db; done | sed 's/grecord(ai,"\(.*\)")/\1/g' | awk "{ printf \"insert into channel (name, grp_id) values ('%s', 1);\n\", \$$0 }"
+
 cleanWorld: $(patsubst %,clean-%,$(MDL_MODELS))
 	@echo Cleaned $(MDL_MODELS)
 
-- 
GitLab