1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Description: Fix curl.h parsing to fix empty curlopt.h
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1026097
--- lua-curl-0.3.0.orig/Makefile
+++ lua-curl-0.3.0/Makefile
@@ -128,8 +128,8 @@ dist: clean
# Constants genereated starting from the cURL headers:
curlopt.h: $(HEADER)
- $(H)cat $(HEADER) | grep "^ *CINIT(" | sed "s/CINIT(/{\"OPT_/" | \
- tr -s " " " " | sed "s/, /\",CURLOPTTYPE_/" | \
+ $(H)cat $(HEADER) | grep "^ *CURLOPT(" | sed "s/CURLOPT(/{\"OPT_/" | \
+ sed "s/CURLOPT_//" | sed "s/, /\",/" | tr -s " " " " | \
sed "s/, / + /" | sed "s/),/},/" > curlopt.h
curl_netrcopt.h:$(HEADER)
|