EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Porting db file generation from 3.13 to 3.14
From: Benjamin Franksen <[email protected]>
To: [email protected]
Date: Tue, 21 Dec 2004 13:16:10 +0100
I'm in the early stages of porting a 3.13 application to 3.14 and got 
stuck almost immediately.

Our typical application creates X.db using X.substitutions and template 
files a.template and b.template. X.substitutions looks like this

file a.template {
  { NAME="a1" }
  { NAME="a2" }
}
file b.template {
  { NAME="b1" }
  { NAME="b2" }
  { NAME="b3" }
}

In my old (3.13) Makefile.Host I have

USES_TEMPLATE = a.template b.template
DB = X.db

which creates X.db by calling (more or less)

msi -S X.substitutions > X.db

That is, msi is used as substitution for host side dbLoadTemplate.

What definitions do I need in my Makefile to make this work in 3.14? 
Make complains about a missing "../X.template".

I read chapter 4 of the ADG but there is no clue to what I should do 
here. The doc seems to suggest that expanding substitutions files in 
the dbLoadTemplate style is no longer supported because it seems that 
*one* template file is required for each substitution file and a subst 
files like the above obviously needs not one but many different 
template files.

Almost all of our applications use above style to expand db on the host 
side and most of the substitutions files are generated by scripts from 
a relational Database.

I am quite astonished that I seem to be the first one stumbling over 
this. Any suggestion on how to proceed would be greatly appreciated.

Ben

Navigate by Date:
Prev: Re: Micos Motor Support query. David Maden
Next: Has anyone built EDM for OS X? Josh Stein
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: database conversion john sinclair
Next: Has anyone built EDM for OS X? Josh Stein
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·