[72118] trunk/dports/devel/gettext-lint

Anders F Björklund afb at macports.org
Mon Oct 4 01:18:21 PDT 2010


Ryan Schmidt wrote:

>> Maybe base should grow a native "dos2unix"...
>>
>> Then you wouldn't need to copy the junk, but:
>>
>> dos2unix -k ${worksrcpath}/src/POFileClean.in
>
> -k?

dos2unix(1) says:
        -k --keepdate
               Keep the date stamp of output file same as input file.

Of course you can do that manually too, with "touch -r".

> It shouldn't be too bad to put the above reinplace into  
> PortfileRecipes, however. I don't think we need a new MacPorts base  
> function for something that can already be accomplished quite  
> simply using reinplace.


It's possible do a lot of things in Tcl, if you want to.

Not that reinplace is native (uses sed) either, but OK...

--anders



More information about the macports-dev mailing list