2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 <2015> 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: RFC: Creating st.cmd from snippets |
From: | Ralph Lange <[email protected]> |
To: | EPICS Core-Talk <[email protected]> |
Date: | Wed, 23 Sep 2015 09:51:12 +0200 |
Hej Torsten, Thanks a lot for your input! On 23/09/2015 06:51, Torsten
Bögershausen wrote:
some loose thinking: Point taken. I will add something to allow that. I still like the "no dots" thing (idea taken from /etc/cron.*/ scripts on Linux) because it is an easy way to ignore all *.bk *.bak *.orig *.old ... files without having to explicitly filter all of these patterns. - I like the numbering Nah... well... matter of taste, actually. I was thing along search path, include path, library path etc. settings. All of these are searching directories in the order they appear. Maybe I should replace the multiple directories on the command line with one argument, which is a search path. There are a number of systems that do configuration over multiple directories. What's needed in addition to plain combination is that a local place must have ways to replace/remove things from a global place, and a global place can provide defaults that when copied/adapted in a local place will replace the global definition.
In terms of portability, I simply trust the functionality inside perl to be more consistent than the very different shells on all our different host platforms.
That does sound interesting indeed. I have seen two or three approaches to create st.cmd files so far, but only one was snippet based. Well... I am afraid I won't get travel approval for asking a question about how to create a batch file. :-(
First implementation next week (30 September), documentation and release late October (Base 3.15.3). Pain factor? Low. For st.cmd, I have a local requirement for something more flexible than creating a fixed blob and more comprehensive than series of series of include files with fixed names. Any EPICS installation larger than a handful of IOCs will think about creating st.cmd files, based on global parts with local extensions or overwrites. So I thought I would want Base to provide a mechanism that is generic enough not to be a st.cmd solution only, while flexible and comprehensive enough to be an easy way to solve 90% of the prospective use cases.
On a related topic: I really don't like TOP/iocBoot to be a source and an installation directory at the same time. That causes trouble when creating distribution packages for IOCs (have to sort out sources and Makefiles from the stuff the IOC needs), "make uninstall" etc. For 3.16, I would rather have TOP/iocBoot be a regular source directory, and install the stuff for the IOC into TOP/ioc, which can be treated as an installation dir, being packaged, thrown away at "make uninstall" etc. Cheers, ~Ralph |