[109860] trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
Jeremy Huddleston Sequoia
jeremyhu at macports.org
Wed Aug 21 10:23:16 PDT 2013
On Aug 21, 2013, at 1:48, Ryan Schmidt <ryandesign at macports.org> wrote:
>
> On Aug 20, 2013, at 17:37, jeremyhu at macports.org wrote:
>
>> Revision: 109860
>> https://trac.macports.org/changeset/109860
>> Author: jeremyhu at macports.org
>> Date: 2013-08-20 15:37:37 -0700 (Tue, 20 Aug 2013)
>> Log Message:
>> -----------
>> muniversal: Move code to strip arch flags into a separate procedure
>>
>> Modified Paths:
>> --------------
>> trunk/dports/_resources/port1.0/group/muniversal-1.0.tcl
>
>> + reinplace {s:-arch *[^ ][^ ]*::} ${tempfile1} ${tempfile2}
>
> The replacement should probably be global, so that multiple flags on a single line are all replaced.
True.
> This could be more simply written as:
>
> reinplace -E {s:-arch +[^ ]+::g} ${tempfile1} ${tempfile2}
Oh, so reinplace -E gives me egrep? Nice. I was saddened when {s:-arch +[^ ]+::} didn't work on my first attempt. =)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4145 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20130821/45e1ead2/attachment.p7s>
More information about the macports-dev
mailing list