On Thursday, November 21, 2002, at 08:05 PM, Jeremy Erwin wrote:

sed 's:@PREFIX@:%p:g' <%a/%f.patch | patch -p1

Assuming I've read that correctly, sed substitutes the current definition of %p for @PREFIX@ in the patchfile , before feeding the results to patch.

I want to substitute the proper fink prefixes for two variables (@DESTDIR@ and @PREFIX@), but am unsure how to coerce sed to do this.
sed 's:@PREFIX@:%p:g' <%a/%f.patch | sed 's:@DESTDIR@:%d:g' | patch -p1

should work. give it a whirl ;-)

 -- Finlay



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to