On 28 Jan 2005, at 12:26 PM, Daniel Macks wrote:

I tried to compile a package that contained the fairly standard:

  sed 's|@PREFIX@|%p|' < %a/%n.patch | patch -p1

in PatchScript and due to a screwup on my part, that patchfile didn't
exist. An error message was reported by sed, however, the build
process then continued!

How's this for a simple alternative:

/usr/bin/sed 's|@PREFIX@|%p|' <%a/%n.patch >%n.patch && /usr/bin/patch -p1 %n.patch

It leaves a %n.patch file in the build directory, but shouldn't matter.

--
Rohan Lloyd



-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Fink-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to