EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: MSI Makefile Madness
From: Michael Davidsaver <[email protected]>
To: EPICS core-talk <[email protected]>
Date: Thu, 1 Mar 2018 20:18:59 -0800
So I've step into something which might be at least in part a feature,
but contains some elements which really aren't helpful.

The setup is this, a Makefile file containing

> DB += file.db

This directory also contains three files.

* file.substitutions
* file.template
* other.template

So two with the same basename.

> $ cat file.substitutions 
> file "file.template" {
> {X=1}
> }
> file "other.template" {
> {X=2}
> }
> $ cat file.template 
> # from file.template
> $ cat other.template 
> # from other.template
> $

What I expect to see is

> $ cat file.db
> # from file.template 1
> # from other.template 2

What I actually see is

> $ cat file.db
> # from file.template 1
> # from file.template 2

msi completes normally.  No warnings are printed.

The second filename 'other.template' is silently ignored!
In fact, I find that all the filenames in the .substitutions
file are ignored!  So 'file "invalid" {' produces the same
output, and emits no warnings.

However, 'filexxx "invalid" {' triggers a syntax error as it should.


I've reduced this to a difference in how msi is called.
The unexpected comes from:

> msi -I. -o file.db -Sfile.substitutions file.template

If I renamed 'file.template' to eg. 'filex.template' then
the invocation is:

> msi -I. -o file.db -Sfile.substitutions

which produces the expected results.

So the immediate solution is to rename the .template file.

I am curious though to find out how much of this is defined,
or at least expected behavior?

Navigate by Date:
Prev: Re: New/improved iocsh debug utility functions Andrew Johnson
Next: Re: New/improved iocsh debug utility functions (dbla) Dirk Zimoch
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: New/improved iocsh debug utility functions (dbli) Dirk Zimoch
Next: Re: MSI Makefile Madness Konrad, Martin
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  2020  2021  2022  2023  2024 
ANJ, 09 Mar 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·