Hi Stefan,
On Tuesday 23 September 2008 11:18:04 Stefan Heim wrote:
>
> The trick is to rely on the relative location of the perl module
> directory with respect to the HOST_BIN directory rather than on absolute
> paths. Lines of the form
>
> use lib '@TOP@/lib/perl';
>
> have to be replaced by
>
> use FindBin qw($Bin);
> use lib "$Bin/../../lib/perl";
>
> in the *.pl@ tools in order to have the tools work independently of the
> absolute path of EPICS_BASE. An analogous modification does the job for
> the new CA.pm.
>
> I'd love to see this change (patch attached) checked into CVS before the
> 3.14.10 release. Any comments?
I like it, and actually I'll go further than you because none of the scripts
in base need to have @TOP@ expanded at all. This simplifies expandVars.pl
which no longer needs to have the special bootstrap, but I think we still
need to include it so we can provide a way for scripts outside of base to add
the path @EPICS_BASE@/lib/perl to their @INC list.
Thanks, I will add this approach before R3.14.10 comes out.
- Andrew
--
Talk is cheap. Show me the code. -- Linus Torvalds
- References:
- EPICS perl tools in 3.14.10-pre1 Stefan Heim
- Navigate by Date:
- Prev:
javaIOC Marty Kraimer
- Next:
Re: StreamDevice 2.4 released Dirk Zimoch
- 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:
EPICS perl tools in 3.14.10-pre1 Stefan Heim
- Next:
EPICS interface to Agilent Oscilloscope Dach Miroslaw
- 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
|