os400: handle CURL_TEMP_PRINTF() while building bind source

Closes #11547
This commit is contained in:
Patrick Monnerat 2023-08-19 01:45:00 +02:00 committed by Daniel Stenberg
parent aafe43a715
commit fe58e2945b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -100,13 +100,13 @@ fi
# Gather the list of symbols to export. # Gather the list of symbols to export.
# First use awk to pull all CURL_EXTERN function prototypes from # First use awk to pull all CURL_EXTERN function prototypes from
# the header files, pass through to sed to strip CURL_DEPRECATED(..) # the header files, pass through to sed to strip CURL_DEPRECATED(..)
# then back to awk to pull the string immediately to the left of a # and CURL_TEMP_PRINTF(..) then back to awk to pull the string
# bracket stripping any spaces or *'s. # immediately to the left of a bracket stripping any spaces or *'s.
EXPORTS=`awk '/^CURL_EXTERN/,/;/' \ EXPORTS=`awk '/^CURL_EXTERN/,/;/' \
"${TOPDIR}"/include/curl/*.h \ "${TOPDIR}"/include/curl/*.h \
"${SCRIPTDIR}/ccsidcurl.h" | "${SCRIPTDIR}/ccsidcurl.h" |
sed 's| CURL_DEPRECATED(.*)||g' | sed 's/ CURL_DEPRECATED(.*)//g;s/ CURL_TEMP_PRINTF(.*)//g' |
awk '{br=index($0,"("); \ awk '{br=index($0,"("); \
if (br) { \ if (br) { \
for(c=br-1; ;c--) { \ for(c=br-1; ;c--) { \