Skip to content
Snippets Groups Projects
Commit 0a9452ab authored by Alexander Ivanov's avatar Alexander Ivanov
Browse files

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
parent d327c8ed
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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