[darcs-devel] darcs patch

Frank Ruell stoerte at dreamwarrior.net
Thu Jul 29 12:43:48 PDT 2004


the current curl-config fix doesn't work with the BSD-sed from OS X:
~$ curl-config --libs | sed -e "s_-arch [^ ]+__"
-L/usr/lib -lcurl -arch i386 -arch ppc -lz -lssl -lcrypto -lz

it /would/ work with the regex-parameter:
~$ curl-config --libs | sed -E "s_-arch [^ ]+__"
-L/usr/lib -lcurl  -arch ppc -lz -lssl -lcrypto -lz

but GNU-sed barfs on the -E:
~$ curl-config --libs | gsed -E "s_-arch [^ ]+__"
gsed: invalid option -- E
Usage: gsed [OPTION]... {script-only-if-no-other-script} [input-file]...
[...]

awk may be overkill, but this syntax works with BSD awk, GNU gawk and Tru64 
nawk. The ugly stuff is called quadrigraphs and gets substituted by autoconf
with [ and ], while "real" [ and ] disappear.
http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_node/autoconf_95.html

Thu Jul 29 20:15:05 CEST 2004  Frank Ruell <stoerte at dreamwarrior.net>
  * correct libcurl flags

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 1872 bytes
Desc: A darcs patch for your repository!
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20040729/da4f77de/attachment.bin
-------------- next part --------------




More information about the darcs-devel mailing list