Re: reinplace permission denied mariadb-server

2016-10-07 Thread Bradley Giesbrecht
> On Oct 7, 2016, at 8:09 AM, Ryan Schmidt wrote: > > >> On Oct 7, 2016, at 9:48 AM, Bradley Giesbrecht wrote: >> >> Hi, >> >> >> mariadb-server is a support of mariadb. >> >> >> In post-extract I copy a file from filespath

Re: reinplace permission denied mariadb-server

2016-10-07 Thread Ryan Schmidt
> On Oct 7, 2016, at 9:48 AM, Bradley Giesbrecht wrote: > > Hi, > > > mariadb-server is a support of mariadb. > > > In post-extract I copy a file from filespath and in post-patch I patch the > file with reinplace: > port cat mariadb-server: > ... >

reinplace permission denied mariadb-server

2016-10-07 Thread Bradley Giesbrecht
Hi, mariadb-server is a support of mariadb. In post-extract I copy a file from filespath and in post-patch I patch the file with reinplace: port cat mariadb-server: ... post-extract { file mkdir ${worksrcpath}/macports copy ${filespath}/org.macports.mysql-server.plist

Re: Include file clobbering / Reinplace strange behavior

2014-10-04 Thread Clemens Lang
Hi, - On 4 Oct, 2014, at 16:25, Joshua Root j...@macports.org wrote: >> I’m writing an updating port for the new version of gis/gdal. >> >> However, the port does not compile because a .h file installed by the old >> version into ${prefix}/include masks a new version of the same .h bundled

Re: Include file clobbering / Reinplace strange behavior

2014-10-04 Thread Joshua Root
tract { > file copy ${worksrcpath}/port/cpl_port.h ${worksrcpath}/port/Cpl_port.h > set files_to_patch [exec find ${worksrcpath} -type f -exec grep -l > "cpl_port.h" \{\} \;] > foreach file ${files_to_patch} { > # DEBUG > puts ${file} >

Include file clobbering / Reinplace strange behavior

2014-10-04 Thread Vincent Habchi
ort.h" \{\} \;] foreach file ${files_to_patch} { # DEBUG puts ${file} reinplace "s|cpl_port.h|Cpl_port.h|" ${file} } } However, the procedure fails at a certain point for an unknown reason: /opt/…/frmts/grib/degrib18/degrib/grib2api.c /opt/…/frmts/grib/degrib18/

Re: patch instead of reinplace?

2014-09-27 Thread Ryan Schmidt
On Sep 27, 2014, at 11:06 AM, Brandon Allbery wrote: > On Sat, Sep 27, 2014 at 11:59 AM, Kurt Hindenburg wrote: >> Hi, I find reinplace easier and less work for new releases. Are there >> reasons to use one over the other? > > reinplace is appropriate for replacing self-c

Re: patch instead of reinplace?

2014-09-27 Thread Brandon Allbery
On Sat, Sep 27, 2014 at 11:59 AM, Kurt Hindenburg wrote: > Hi, I find reinplace easier and less work for new releases. Are there > reasons to use one over the other? reinplace is appropriate for replacing self-contained "tokens" and such. When the context of an edit is impo

patch instead of reinplace?

2014-09-27 Thread Kurt Hindenburg
Hi, I find reinplace easier and less work for new releases. Are there reasons to use one over the other? Kurt Revision: 125845 https://trac.macports.org/changeset/125845 Author:ryandesign at macports.org <https://lists.macosforge.org/mailman/listinfo/macports-changes>

Re: reinplace loop

2014-07-16 Thread Ryan Schmidt
On Jul 13, 2014, at 4:07 PM, Mark Brethen wrote: > On Jul 13, 2014, at 3:28 PM, Jeremy Lavergne wrote: > >> On Jul 13, 2014, at 16:18, Mark Brethen wrote: >> >>> In need to reinplace the CMakeLists file in each subdirectory, replacing >>> '

Re: reinplace loop

2014-07-13 Thread Mark Brethen
On Jul 13, 2014, at 3:28 PM, Jeremy Lavergne wrote: > I’d use fs-traverse, filtering to just the specific files you’re after. > > On Jul 13, 2014, at 16:18, Mark Brethen wrote: > >> In need to reinplace the CMakeLists file in each subdirectory, replacing >> '

Re: reinplace loop

2014-07-13 Thread Jeremy Lavergne
I’d use fs-traverse, filtering to just the specific files you’re after. On Jul 13, 2014, at 16:18, Mark Brethen wrote: > In need to reinplace the CMakeLists file in each subdirectory, replacing > 'Mod/(subdirectory)' with 'lib/${name}/Mod/(subdirectory). How do you w

Re: reinplace loop

2014-07-13 Thread Mark Brethen
On Jul 13, 2014, at 3:18 PM, Mark Brethen wrote: > Given a directory tree > > src/Mod > |-- Arch > |-- Assembly > |-- Cam > |-- CMakeFiles > |-- Complete > > In need to reinplace the CMakeLists file in each subdirectory, replacing &g

reinplace loop

2014-07-13 Thread Mark Brethen
Given a directory tree src/Mod |-- Arch |-- Assembly |-- Cam |-- CMakeFiles |-- Complete In need to reinplace the CMakeLists file in each subdirectory, replacing 'Mod/(subdirectory)' with 'lib/${name}/Mod/(subdirectory). How do you write a tcl loo

Re: reinplace has no effect

2014-07-07 Thread Mark Brethen
That explains why pipe didn't work as well. Thanks. Sent from my iPhone > On Jul 7, 2014, at 1:59 PM, Brandon Allbery wrote: > >> On Mon, Jul 7, 2014 at 2:30 PM, Mark Brethen wrote: >> I only need to replace the uncommented line. So I tried >> >>

Re: reinplace has no effect

2014-07-07 Thread Brandon Allbery
On Mon, Jul 7, 2014 at 2:30 PM, Mark Brethen wrote: > I only need to replace the uncommented line. So I tried > > post-configure { > reinplace {:^#:!s:Inventor/scxml:scxml:g} \ > ${worksrcpath}/src/3rdParty/CMakeLists.txt > } > > But this had no effect, when i

reinplace has no effect

2014-07-07 Thread Mark Brethen
tried post-configure { reinplace {:^#:!s:Inventor/scxml:scxml:g} \ ${worksrcpath}/src/3rdParty/CMakeLists.txt } But this had no effect, when it should work in sed. Am I missing something? Mark ___ macports-dev mailing list macports-dev

Re: reinplace instruction and automatic line feeds

2014-01-07 Thread Nicolas Pavillon
> Don’t do this reinplacement on binary files. > > https://trac.macports.org/ticket/35581 > Sure, that was my intent when noticing it, but I was still wondering about the best way of doing it, as filtering by file extension could have been cumbersome and possibly not reliable. I was however no

Re: reinplace instruction and automatic line feeds

2014-01-07 Thread Ryan Schmidt
On Jan 5, 2014, at 03:23, Nicolas Pavillon wrote: > However, this way also applies reinplace to binary files, and adds a “0A” > line feed at the end of the file. One obvious way would be to filter through > file extensions, but this may become quite cumbersome. Would anyone have a

Re: reinplace instruction and automatic line feeds

2014-01-05 Thread Nicolas Pavillon
On Jan6, 2014, at 1:03, Joshua Root wrote: > The reinplace proc is just a front-end to sed(1), which is a > line-oriented tool and thus the wrong choice for modifying binaries. So > yes, I'd say you need to not run it on the binaries, one way or another. All right, thank

Re: reinplace instruction and automatic line feeds

2014-01-05 Thread Joshua Root
On 2014-1-5 20:23 , Nicolas Pavillon wrote: > Hello, > > I noticed that the “reinplace” instruction is automatically adding a line > feed to files, which is causing problems with some binary files which should > have a predefined length. > > In particular, there is a s

Re: reinplace instruction and automatic line feeds

2014-01-05 Thread Jeremy Lavergne
files that contain that header. >fs-traverse item ${worksrcpath} { >if {[file isfile ${item}]} { >reinplace -locale C "/#include/s@Phonon@phonon@" ${item} >} >} > } > > However, this way also applies reinplace to binary files, and

reinplace instruction and automatic line feeds

2014-01-05 Thread Nicolas Pavillon
Hello, I noticed that the “reinplace” instruction is automatically adding a line feed to files, which is causing problems with some binary files which should have a predefined length. In particular, there is a set of instructions in the kde4-1.1 portgroup which scans all files to replace an

Re: "locale C" in reinplace (Was: [96139] trunk/dports/x11/lesstif/Portfile)

2012-08-01 Thread Jeremy Huddleston Sequoia
wrote: > Hi: > > I've noticed a number of commits recently inserting "-locale C" into > reinplace commands (example below). Google didn't point to an explanation so > I wonder if someone could give me a brief description? > > Thanks, > > Craig

"locale C" in reinplace (Was: [96139] trunk/dports/x11/lesstif/Portfile)

2012-08-01 Thread Craig Treleaven
Hi: I've noticed a number of commits recently inserting "-locale C" into reinplace commands (example below). Google didn't point to an explanation so I wonder if someone could give me a brief description? Thanks, Craig From: ryandes...@macports.o

Re: Reinplace

2012-04-03 Thread Craig Treleaven
At 1:10 AM -0500 4/3/12, Ryan Schmidt wrote: On Apr 2, 2012, at 19:55, Craig Treleaven wrote: At 4:27 PM -0500 4/2/12, Ryan Schmidt wrote: On Apr 2, 2012, at 14:35, Joshua Root wrote: Does just "find ${configure.dir} -name Makefile" also give unexpected results? The "find" correctly f

Re: Reinplace

2012-04-02 Thread Ryan Schmidt
On Apr 2, 2012, at 19:55, Craig Treleaven wrote: > At 4:27 PM -0500 4/2/12, Ryan Schmidt wrote: >> On Apr 2, 2012, at 14:35, Joshua Root wrote: >> >>> Does just "find ${configure.dir} -name Makefile" also give unexpected >>> results? >> >> The "find" correctly finds 28 files named "Makefile". I

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 6:31 PM -0700 4/2/12, Bradley Giesbrecht wrote: Content-type: multipart/signed; boundary=Apple-Mail-15-774700747; protocol="application/pkcs7-signature"; micalg=sha1 On Apr 2, 2012, at 6:04 PM, Craig Treleaven wrote: At 8:55 PM -0400 4/2/12, Craig Treleaven wrote: At 4:27 PM -0500 4/2/

Re: Reinplace

2012-04-02 Thread Bradley Giesbrecht
On Apr 2, 2012, at 6:04 PM, Craig Treleaven wrote: > At 8:55 PM -0400 4/2/12, Craig Treleaven wrote: >> At 4:27 PM -0500 4/2/12, Ryan Schmidt wrote: >>> On Apr 2, 2012, at 14:35, Joshua Root wrote: >>> Does just "find ${configure.dir} -name Makefile" also give unexpected results? >>>

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 8:55 PM -0400 4/2/12, Craig Treleaven wrote: At 4:27 PM -0500 4/2/12, Ryan Schmidt wrote: On Apr 2, 2012, at 14:35, Joshua Root wrote: Does just "find ${configure.dir} -name Makefile" also give unexpected results? The "find" correctly finds 28 files named "Makefile". It correctly remov

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 4:27 PM -0500 4/2/12, Ryan Schmidt wrote: On Apr 2, 2012, at 14:35, Joshua Root wrote: Does just "find ${configure.dir} -name Makefile" also give unexpected results? The "find" correctly finds 28 files named "Makefile". It correctly removes " -L " from 22 of them. The remaining 6 are in

Re: Reinplace

2012-04-02 Thread Ryan Schmidt
On Apr 2, 2012, at 14:35, Joshua Root wrote: > Does just "find ${configure.dir} -name Makefile" also give unexpected > results? The "find" correctly finds 28 files named "Makefile". It correctly removes " -L " from 22 of them. The remaining 6 are in the directory mythplugins/mythweather/mythwe

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 3:14 PM -0500 4/2/12, Ryan Schmidt wrote: On Apr 2, 2012, at 14:13, Craig Treleaven wrote: Ryan, for building, remember that you need qt-4mac +mysql +debug. You said I needed +mysql before so I rebuilt with that. Why do I need +debug as well? I don't want my computer slow for another en

Re: Reinplace

2012-04-02 Thread Ryan Schmidt
On Apr 2, 2012, at 14:13, Craig Treleaven wrote: > Ryan, for building, remember that you need qt-4mac +mysql +debug. You said I needed +mysql before so I rebuilt with that. Why do I need +debug as well? I don't want my computer slow for another entire day while I rebuild qt4-mac yet again. _

Re: Reinplace

2012-04-02 Thread Joshua Root
t; > That still doesn't explain, though, why find proceeds merrily for 22 of > the 78 directories and then quits without error. Jeremy and I were talking about your reinplace line. Yes, the system command runs a shell, and I don't see anything wrong with the way you're using

Re: Reinplace

2012-04-02 Thread Jeremy Lavergne
Think so: It's being parsed by tcl and then passed through Craig Treleaven wrote: >At 5:14 AM +1000 4/3/12, Joshua Root wrote: >>On 2012-4-3 04:01 , Jeremy Lavergne wrote: Nope, none of those characters have special meanings to Tcl nor to the regular expression engine. It looks like a

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 3:25 PM -0400 4/2/12, Craig Treleaven wrote: At 5:14 AM +1000 4/3/12, Joshua Root wrote: On 2012-4-3 04:01 , Jeremy Lavergne wrote: Nope, none of those characters have special meanings to Tcl nor to the regular expression engine. It looks like a perfectly valid regular expression to me. Ho

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 5:14 AM +1000 4/3/12, Joshua Root wrote: On 2012-4-3 04:01 , Jeremy Lavergne wrote: Nope, none of those characters have special meanings to Tcl nor to the regular expression engine. It looks like a perfectly valid regular expression to me. Hopefully it will become clearer to me when I actu

Re: Reinplace

2012-04-02 Thread Joshua Root
On 2012-4-3 04:01 , Jeremy Lavergne wrote: >> Nope, none of those characters have special meanings to Tcl nor to the >> regular expression engine. It looks like a perfectly valid regular >> expression to me. Hopefully it will become clearer to me when I actually try >> to build the port. Please

Re: Reinplace

2012-04-02 Thread Craig Treleaven
At 12:56 PM -0500 4/2/12, Ryan Schmidt wrote: On Apr 2, 2012, at 12:39, Craig Treleaven wrote: Maybe that's the problem--it is not supposed to be a "regular expression"; it is a literal string of 'space-hyphen-capital ell-space'. Does hyphen have special meaning in a regex? Nope, none of t

Re: Reinplace

2012-04-02 Thread Jeremy Lavergne
> Nope, none of those characters have special meanings to Tcl nor to the > regular expression engine. It looks like a perfectly valid regular expression > to me. Hopefully it will become clearer to me when I actually try to build > the port. Please hold on. My computer is currently occupied upgr

Re: Reinplace

2012-04-02 Thread Ryan Schmidt
On Apr 2, 2012, at 12:39, Craig Treleaven wrote: > Maybe that's the problem--it is not supposed to be a "regular expression"; it > is a literal string of 'space-hyphen-capital ell-space'. Does hyphen have > special meaning in a regex? Nope, none of those characters have special meanings to Tc

Re: Reinplace

2012-04-02 Thread Craig Treleaven
; sudo find . -name "Makefile" -exec sed -i '' 's/ -L / /g' {} \; This is what MacPorts Reinplace extension is for, right? Would this be the right syntax? post-configure { reinplace 's/ -L / /g' ${worksrcpath}/Makefile } Reinplace will do a r

Re: Reinplace

2012-04-02 Thread Ryan Schmidt
-name "Makefile" -exec sed -i '' 's/ -L / /g' {} \; >>> >>> This is what MacPorts Reinplace extension is for, right? Would this be the >>> right syntax? >>> >>> post-configure { >>> reinplace 's/ -L /

Re: Reinplace

2012-04-01 Thread Craig Treleaven
At 10:20 AM -0400 3/31/12, Jeremy Lavergne wrote: > cd cd "/opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_Myth.25/mythtv/work/mythtv-v0.25-rc-0-g92f7d1f/mythtv" sudo find . -name "Makefile" -exec sed -i '' 's/ -L / /g' {} \; This

Re: Reinplace

2012-03-31 Thread Jeremy Lavergne
> cd cd > "/opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_Myth.25/mythtv/work/mythtv-v0.25-rc-0-g92f7d1f/mythtv" > sudo find . -name "Makefile" -exec sed -i '' 's/ -L / /g' {} \; > > This is what MacPorts Reinplace exte

Reinplace

2012-03-31 Thread Craig Treleaven
_Myth.25/mythtv/work/mythtv-v0.25-rc-0-g92f7d1f/mythtv" sudo find . -name "Makefile" -exec sed -i '' 's/ -L / /g' {} \; This is what MacPorts Reinplace extension is for, right? Would this be the right syntax? post-configure { reinplace 's/ -L /

reinplace -n option

2010-09-11 Thread Ryan Schmidt
Any objections to adding sed's -n switch to reinplace? Having this available would let us solve a problem with perl ports. The proposal and patch are here: http://trac.macports.org/ticket/26406 ___ macports-dev mailing list macport

Re: reinplace - how to remove a new line char

2009-05-30 Thread Rainer Müller
On 2009-05-30 00:11, Darren Weber wrote: > An example of how to remove a line with some search text in it. Assume > tmp.txt contains: > > # BEGIN (not in file) > abc > def > # END (not in file) > > reinplace {$!N;s|^.*abc.*\\n||g} tmp.txt Easier sed syntax to remove

reinplace - how to remove a new line char

2009-05-29 Thread Darren Weber
An example of how to remove a line with some search text in it. Assume tmp.txt contains: # BEGIN (not in file) abc def # END (not in file) reinplace {$!N;s|^.*abc.*\\n||g} tmp.txt If you need to include variables -- escape, escape, escape! set abcVar abc reinplace "\$!N;s|^.*${abcVar}.*\

Re: tcl testing: where is reinplace declared?

2009-05-28 Thread Darren Weber
>> > Following the wiki dev tips, I'm doing this: >> > >> > rlwrap tclsh8.4 >> > % source /Library/Tcl/macports1.0/macports_fastload.tcl >> > % package require Pextlib >> > >> > It doesn't provide the 'reinplace' c

Re: tcl testing: where is reinplace declared?

2009-05-27 Thread Toby Peterson
On May 27, 2009, at 3:28 PM, Darren Weber wrote: PS, I know grep isn't glob ;-) The grep was a bash command to search all the macport .tcl files. Indeed, but "*reinplace*" means it's looking for the literal string "*reinplac" followed by 0 or

Re: tcl testing: where is reinplace declared?

2009-05-27 Thread Darren Weber
quire Pextlib > > > > It doesn't provide the 'reinplace' command. Also, the following comes > > up with nothing: > > > > grep "*reinplace*" /Library/Tcl/macports1.0/* > > > > Where is this little gem and can it be required in tclsh

Re: tcl testing: where is reinplace declared?

2009-05-27 Thread Rainer Müller
On 2009-05-27 23:23, Darren Weber wrote: > > Following the wiki dev tips, I'm doing this: > > rlwrap tclsh8.4 > % source /Library/Tcl/macports1.0/macports_fastload.tcl > % package require Pextlib > > It doesn't provide the 'reinplace' command.

Re: tcl testing: where is reinplace declared?

2009-05-27 Thread Toby Peterson
On May 27, 2009, at 2:23 PM, Darren Weber wrote: Following the wiki dev tips, I'm doing this: rlwrap tclsh8.4 % source /Library/Tcl/macports1.0/macports_fastload.tcl % package require Pextlib It doesn't provide the 'reinplace' command. Also, the following comes up

tcl testing: where is reinplace declared?

2009-05-27 Thread Darren Weber
Following the wiki dev tips, I'm doing this: rlwrap tclsh8.4 % source /Library/Tcl/macports1.0/macports_fastload.tcl % package require Pextlib It doesn't provide the 'reinplace' command. Also, the following comes up with nothing: grep "*reinplace*" /Library/Tc

Re: reinplace - how to escape \. ?

2009-05-27 Thread Ryan Schmidt
backslash escapes from the tcl interpreter. The next backslash espaces from the regular expression engine. reinplace "s|\\.\\./lib/${name}|\\.\\./lib/${distname}|g"} ${destroot} ${findITKbranch} If you don't need any variables in your regular expression, you can enclose it

Re: reinplace - how to escape \. ?

2009-05-26 Thread Jeremy Lavergne
It likely needs a double escape. Try \\. Good luck! On May 27, 2009, at 2:47 AM, Darren Weber wrote: That doesn't work. I don't understand how this is parsed through the tcl and port parsers. How would you do it? smime.p7s Description: S/MIME cryptographic signature

reinplace - how to escape \. ?

2009-05-26 Thread Darren Weber
oolkit-3.12" However, when the \. is used in reinplace for a Portfile, e.g.: reinplace "s|\.\./lib/${name}|\.\./lib/${distname}|g"} ${destroot}${findITKbranch} The result is the same as the second example above (i.e. PREFIX becomes PREF..). I also tried this: reinplace {"s|[.][.]/

Re: reinplace question

2009-03-21 Thread Bradley Giesbrecht
On Mar 20, 2009, at 6:25 PM, Rainer Müller wrote: Bradley Giesbrecht wrote: This is what I ended up with to escape double quotes. I'm sure someone here will show me a better way. set CCARGS [concat ${CCARGS} -DUSE_SASL_AUTH - DDEF_SERVER_SASL_TYPE=\\"dovecot\\"] First, the

Re: reinplace question

2009-03-20 Thread Rainer Müller
Bradley Giesbrecht wrote: > This is what I ended up with to escape double quotes. I'm sure someone > here will show me a better way. > > set CCARGS [concat ${CCARGS} -DUSE_SASL_AUTH - > DDEF_SERVER_SASL_TYPE=\\"dovecot\\"] First, there is usually no need to do: set foo [conc

Re: reinplace question

2009-03-20 Thread Rainer Müller
Rainer Müller wrote: > Rainer Müller wrote: > >> You have to quote the replace pattern, otherwise &|g is interpreted as a >> filename. >> >> reinplace "s|psppire|psppire &|g" ... > > And please note that & does not do here what it

Re: reinplace question

2009-03-20 Thread Rainer Müller
Rainer Müller wrote: > You have to quote the replace pattern, otherwise &|g is interpreted as a > filename. > > reinplace "s|psppire|psppire &|g" ... And please note that & does not do here what it usually does with sed. It will not be replaced with the m

Re: reinplace question

2009-03-20 Thread Bradley Giesbrecht
On Mar 20, 2009, at 7:21 AM, Jeremy Lavergne wrote: If I want to append a space and ampersand at the end of a known line, what's the way to write this in reinplace? I tried (without success): reinplace s|psppire|psppire &|g reinplace s|psppire|psppire\ &|g reinplace s|ps

Re: reinplace question

2009-03-20 Thread Rainer Müller
Jeremy Lavergne wrote: > If I want to append a space and ampersand at the end of a known line, > what's the way to write this in reinplace? > > I tried (without success): > reinplace s|psppire|psppire &|g > reinplace s|psppire|psppire\ &|g >

reinplace question

2009-03-20 Thread Jeremy Lavergne
If I want to append a space and ampersand at the end of a known line, what's the way to write this in reinplace? I tried (without success): reinplace s|psppire|psppire &|g reinplace s|psppire|psppire\ &|g reinplace s|psppire|psppire\ \&|g Any suggestions? smim

Re: When reinplace doesn't change a file

2008-06-04 Thread Ryan Schmidt
On Jun 5, 2008, at 00:04, Jordan Hubbard wrote: > On Jun 4, 2008, at 9:37 PM, Joshua Root wrote: > >> Ryan Schmidt wrote: >> >>> Can I get an opinion from our port authors? I think MacPorts should >>> at least issue a warning (if not error out entirely) when a

Re: When reinplace doesn't change a file

2008-06-04 Thread Joshua Root
Ryan Schmidt wrote: > Can I get an opinion from our port authors? I think MacPorts should > at least issue a warning (if not error out entirely) when a reinplace > command doesn't end up changing a file. Do you agree? > > I filed a ticket with a patch: > > http:

When reinplace doesn't change a file

2008-06-04 Thread Ryan Schmidt
Can I get an opinion from our port authors? I think MacPorts should at least issue a warning (if not error out entirely) when a reinplace command doesn't end up changing a file. Do you agree? I filed a ticket with a patch: http://trac.macports.org/ticket/

Re: replace reinplace

2007-04-01 Thread Yves de Champlain
Le 07-04-01 à 10:05, Elias Pipping a écrit : On Apr 1, 2007, at 3:39 PM, Yves de Champlain wrote: On the other hand, maybe some grepper could translate that in 'basic mode' for me ? sed -E 's|\$\(DESTDIR\)[[:space:]]+\$\(|\$\(DESTDIR\)\$\(|g' sed 's|\$(DESTDIR)[[:space:]][[:space:]]*\$(|

Re: replace reinplace

2007-04-01 Thread Elias Pipping
On Apr 1, 2007, at 3:39 PM, Yves de Champlain wrote: On the other hand, maybe some grepper could translate that in 'basic mode' for me ? sed -E 's|\$\(DESTDIR\)[[:space:]]+\$\(|\$\(DESTDIR\)\$\(|g' sed 's|\$(DESTDIR)[[:space:]][[:space:]]*\$(|FOO|g' changes $(DESTDIR) $( to FOO if

Re: replace reinplace

2007-04-01 Thread Yves de Champlain
Le 07-04-01 à 03:02, Cédric Luthi a écrit : On 1 avr. 07, at 08:03, Ryan Schmidt wrote: Wouldn't most of the existing invocations of reinplace break if we change that now? I'd say no. Replacing sed -E by sed would break all those who actually use extended syntax but probab

Re: replace reinplace

2007-03-31 Thread Cédric Luthi
On 1 avr. 07, at 08:03, Ryan Schmidt wrote: Wouldn't most of the existing invocations of reinplace break if we change that now? I'd say no. Replacing sed -E by sed would break all those who actually use extended syntax but probably not the other way round. I don't thin

Re: replace reinplace

2007-03-31 Thread Ryan Schmidt
On Mar 31, 2007, at 22:53, Yves de Champlain wrote: Any reason reinplace does not call sed with -E (extended grep patterns) ? Wouldn't most of the existing invocations of reinplace break if we change that now? ___ macports-dev mailing

replace reinplace

2007-03-31 Thread Yves de Champlain
Hi Any reason reinplace does not call sed with -E (extended grep patterns) ? yves ___ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-dev