EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  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  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Escaped strings from fullPathName.pl
From: "Pedersen, UK (Ulrik)" <[email protected]>
To: <[email protected]>
Date: Fri, 17 Jul 2009 11:05:22 +0100
 Hi,

This is the fix that makes things work for me. In the specific Makefile
I just ensure that all backward slashes are substituted with forward
ones in the path that fullPathName.pl generates.

As different installations of perl seems to produce different results I
think it's is probably a reasonable solution to just force forward
slashes in this case where the specific problem is that the path is
being passed on to C and used as a string...

W:\work\up45\R3.14.10\base>svn diff src\softIoc\Makefile
Index: src/softIoc/Makefile
===================================================================
--- src/softIoc/Makefile        (revision 33692)
+++ src/softIoc/Makefile        (working copy)
@@ -18,7 +18,7 @@
 softIoc_DBD += base.dbd
 softIoc_DBD += system.dbd

-ABS_INSTALL_DIR = $(shell $(PERL) $(TOOLS)/fullPathName.pl
$(INSTALL_LOCATION))
+ABS_INSTALL_DIR = $(subst \,/,$(shell $(PERL) $(TOOLS)/fullPathName.pl
$(INSTALL_LOCATION)))
 USR_CXXFLAGS += -DEPICS_BASE=$(ABS_INSTALL_DIR)

 softIoc_SRCS += softIoc_registerRecordDeviceDriver.cpp


Cheers,
Ulrik 

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Rees, NP (Nick)
Sent: 17 July 2009 09:24
To: [email protected]
Subject: RE: Escaped strings from fullPathName.pl

I can get both forward and backward slashes.

C:\home\epics\R3.14.7\base\configure\tools>fullPathName.pl ..\..
C:/home/epics/R3.14.7/base
C:\home\epics\R3.14.7\base\configure\tools>fullPathName.pl ../..
C:/home/epics/R3.14.7/base
C:\home\epics\R3.14.7\base\configure\tools>fullPathName.pl c:\home
c:\home C:\home\epics\R3.14.7\base\configure\tools>fullPathName.pl
c:/home c:/home C:\home\epics\R3.14.7\base\configure\tools>
C:\home\npr78>perl -v

This is perl, v5.8.7 built for MSWin32-x86-multi-thread (with 14
registered patches, see perl -V for more detail)

Copyright 1987-2005, Larry Wall

Binary build 815 [211909] provided by ActiveState
http://www.ActiveState.com ActiveState is a division of Sophos.
Built Nov  2 2005 08:44:52

Looks like perl is not completely consistent.

Cheers,

Nick Rees
Principal Software Engineer           Phone: +44 (0)1235-778430
Diamond Light Source                  Fax:   +44 (0)1235-446713 
--
Scanned by iCritical.

-- 
Scanned by iCritical.


References:
Escaped strings from fullPathName.pl Pedersen, UK (Ulrik)
RE: Escaped strings from fullPathName.pl Mark Rivers
RE: Escaped strings from fullPathName.pl Pedersen, UK (Ulrik)
RE: Escaped strings from fullPathName.pl Rees, NP (Nick)

Navigate by Date:
Prev: RE: Escaped strings from fullPathName.pl Rees, NP (Nick)
Next: Libera EPICS driver 2.00 release Michael Abbott
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Escaped strings from fullPathName.pl Rees, NP (Nick)
Next: Re: Escaped strings from fullPathName.pl Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  <20092010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 31 Jan 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·