From: Rohan L. <fi...@ro...> - 2005-01-28 13:34:36
|
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 |