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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Trouble with macro substitutions |
From: | "Leblanc, Gregory via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 23 Aug 2021 15:24:06 +0000 |
Hi folks! I’m having some trouble getting this substitution magic to work in my .db files. I think that when I run ‘make’ I should get some .db files, which should have all of the $(XxX) stuff replaced, based on the contents of the .substitutions
file, as long as the filenames match. However, I’m getting some things replaced, and others not. For example, I have the following in Watlow_PM_General.template: { field(INPA, "$(s):$(ta):$(ss):$(mod):ControlMode$(ch) CP") And this in Watlow_PM_General.substitutions: file Watlow_PM_General.template { pattern { s, ta, ss, mod, ch} { , SE, Watlow, 1, 1} } But when I compile, I get things like this in Watlow_PM_General.db: { field(INPA, "SE:Watlow:1:1:ControlMode$(ch) CP") I haven’t been able to figure out why the ch macro is the only one not getting replaced. Full source is at:
https://github.com/gregoryleblanc/CsHeater Any pointers greatly appreciated, Greg -- Gregory Leblanc Accelerator Engineer Edwards Accelerator Lab - Ohio University 123 University Terrace Athens, OH 45701 M: (401) 52-OUAL1 or (401) 526-8251 |