Experimental Physics and Industrial Control System
I have have added the following RULES.Db in the $TOP/configure directory
where used. (3.14.4)
# RULES.Db
# Usage:
# Place this file in your $TOP/configure directory.
# Include this file before $(TOP)/configure/RULES in your *App/Db
Makefile.
#
# This file does two things:
# Provides a rule for translating what the msi document calls dbTemplate
# format substitution files into db files.
#
# Provides for the extraction of request files and archive request files
# from templates.
#
# To use this file you must define USES_TEMPLATE to include the template
# files that you include. These can have any suffix.
#
# translate a a dbTemplate style substitution file.
$(COMMON_DIR)/%.db$(RAW): %.substitutions $(USES_TEMPLATE)
@ln -f -s $^ .
@echo "Inflating database from $< using local rule"
$(RM) $@
$(DBDEPENDS_CMD)
$(MSI) -S$< </dev/null > msi.tmp
$(MV) msi.tmp $@
@rm -f $(notdir $^)
# request file and arReq file record attributes look like this
# in the template file:
# # @arReq $(S)_$(SS):GateGen$(N)_$(DI):ParityError 600 Monitor
#
# extract a auto save restore file from a completed db file
$(INSTALL_DB)/%.req: $(COMMON_DIR)/%.req
cp $< $@
$(COMMON_DIR)/%.req: $(COMMON_DIR)/%.db$(RAW)
@ echo "Extracting $@ from $<"
@ grep "@req" $< | sed ' s/# *@req *// ' > $@
$(COMMON_DIR)/%.req: %.db
@ echo "Extracting $@ from $<"
@ grep "@req" $< | sed ' s/# *@req *// ' > $@
$(COMMON_DIR)/%.req: %.template
@ echo "Extracting $@ from $<"
@ grep "@req" $< | sed ' s/# *@req *// ' > $@
$(INSTALL_DB)/%.arReq: $(COMMON_DIR)/%.arReq
cp $< $@
$(COMMON_DIR)/%.arReq: $(COMMON_DIR)/%.db$(RAW)
@ echo "Extracting $@ from $<"
@ grep "@arReq" $< | sed ' s/# *@arReq *// ' > $@
-----Original Message-----
From: Lionberger, Carl A.
Sent: Wednesday, October 08, 2003 4:40 PM
To: Tech-talk
Subject: database expansion in R3.14.4
I've been trying to expand a database at build time using a
substitutions file that uses several template files, named in the file.
It seems that whatever I do I can only get the command
msi *.substitution *.template > msi.tmp
to run, which uses the named template file in all template lines in the
substitution file regardless of the file named therein, when really all
I want is
msi *.substitution > msi.tmp
I looked this up in the application developers guide and it seems to
agree that only the first functionality, which seems to only allow using
one template file per substitution file, is provided.
What am I missing here? Did the 3.14 build rules really drop this
capability?
Carl
--
Carl Lionberger
SNS Control Systems Group, ORNL
Phone: 865-574-7636
Fax: 865-241-6739
- Navigate by Date:
- Prev:
Re: Initializing a mbboDirect record Ned Arnold
- Next:
EPISC meeting agenda Bob Dalesio
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
database expansion in R3.14.4 Carl Lionberger
- Next:
Does Subscribing to Tech-Talk Work? Steven . Banks
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024