Hi:
For what it's worth, at the SNS we use the C/C++ preprocessor
to process #include and #define statements inside "*.acs" files,
turning them info "*.acf" files.
Below is stuff from the RULES.Db file that I think accomplishes this.
-Kay
#####================ CA security stuff=======================
$(INSTALL_DB)/%.acf: %.acf
@echo "Installing $@"
@$(INSTALL) -d -m 644 $(@F) $(@D)
%.acf: ../%.acf
@$(CP) $< $@
%.acf: %.acs
gcc -E -x c -undef -nostdinc $(ACFLAGS) $(EPICS_DBFLAGS) -o
$@ -c $<
ascheck -S"P=$(IOCNAME)" <$@
$(INSTALL_DB)/%.acs: %.acs
@echo "Installing $@"
@$(INSTALL) -d -m 644 $(@F) $(@D)
%.acs: ../%.acs
@$(CP) $< $@
#=============================================================
On Oct 29, 2007, at 18:58 , Andrew Johnson wrote:
Hi Dayle,
Dayle Kotturi wrote:
Would someone send me an example of the syntax to do this?
There is no support in the language for including other files.
I have an application that has its own access security file
and wants to include packages that have their own .acf files.
If this isn't the right approach, do I just call asSetFilename
multiple times?
The right approach is to have your IOC's build system create a
single file out of the various components. If all you want is
simple include then just cat them all together, but if you need
something more complex you may have to write a script of some kind
(perl, python, shell etc.) to generate the final file that the IOC
will read. The msi tool might also be useful here.
- Andrew
--
When a distinguished but elderly scientist states that something is
possible, he is almost certainly right. When he states that something
is impossible, he is very probably wrong. -- Arthur C. Clarke
- References:
- acf syntax to include other acf files Dayle Kotturi
- Re: acf syntax to include other acf files Andrew Johnson
- Navigate by Date:
- Prev:
Re: combining values into graph? nda
- Next:
PV Gateway Problem Greg Lawson
- 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:
Re: acf syntax to include other acf files Andrew Johnson
- Next:
combining values into graph? Heinrich du Toit
- 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
|