diff options
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.in | 631 | ||||
| -rwxr-xr-x | scripts/ciconfig.pl | 190 | ||||
| -rwxr-xr-x | scripts/cijobs.pl | 510 | ||||
| -rwxr-xr-x | scripts/contributors.sh | 99 | ||||
| -rwxr-xr-x | scripts/contrithanks.sh | 73 | ||||
| -rwxr-xr-x | scripts/delta | 169 | ||||
| -rwxr-xr-x | scripts/installcheck.sh | 52 | ||||
| -rwxr-xr-x | scripts/release-notes.pl | 243 | ||||
| -rwxr-xr-x | scripts/singleuse.pl | 244 |
9 files changed, 631 insertions, 1580 deletions
diff --git a/scripts/Makefile.in b/scripts/Makefile.in new file mode 100644 index 0000000000..d9518dc771 --- /dev/null +++ b/scripts/Makefile.in @@ -0,0 +1,631 @@ +# Makefile.in generated by automake 1.16.5 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994-2021 Free Software Foundation, Inc. + +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +#*************************************************************************** +# _ _ ____ _ +# Project ___| | | | _ \| | +# / __| | | | |_) | | +# | (__| |_| | _ <| |___ +# \___|\___/|_| \_\_____| +# +# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. +# +# This software is licensed as described in the file COPYING, which +# you should have received as part of this distribution. The terms +# are also available at https://curl.se/docs/copyright.html. +# +# You may opt to use, copy, modify, merge, publish, distribute and/or sell +# copies of the Software, and permit persons to whom the Software is +# furnished to do so, under the terms of the COPYING file. +# +# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY +# KIND, either express or implied. +# +# SPDX-License-Identifier: curl +# +########################################################################### +VPATH = @srcdir@ +am__is_gnu_make = { \ + if test -z '$(MAKELEVEL)'; then \ + false; \ + elif test -n '$(MAKE_HOST)'; then \ + true; \ + elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ + true; \ + else \ + false; \ + fi; \ +} +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) +pkgdatadir = $(datadir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkglibexecdir = $(libexecdir)/@PACKAGE@ +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA = $(install_sh) -c -m 644 +install_sh_PROGRAM = $(install_sh) -c +install_sh_SCRIPT = $(install_sh) -c +INSTALL_HEADER = $(INSTALL_DATA) +transform = $(program_transform_name) +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_triplet = @build@ +host_triplet = @host@ +subdir = scripts +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/m4/curl-amissl.m4 \ + $(top_srcdir)/m4/curl-bearssl.m4 \ + $(top_srcdir)/m4/curl-compilers.m4 \ + $(top_srcdir)/m4/curl-confopts.m4 \ + $(top_srcdir)/m4/curl-functions.m4 \ + $(top_srcdir)/m4/curl-gnutls.m4 \ + $(top_srcdir)/m4/curl-mbedtls.m4 \ + $(top_srcdir)/m4/curl-openssl.m4 \ + $(top_srcdir)/m4/curl-override.m4 \ + $(top_srcdir)/m4/curl-reentrant.m4 \ + $(top_srcdir)/m4/curl-rustls.m4 \ + $(top_srcdir)/m4/curl-schannel.m4 \ + $(top_srcdir)/m4/curl-sectransp.m4 \ + $(top_srcdir)/m4/curl-sysconfig.m4 \ + $(top_srcdir)/m4/curl-wolfssl.m4 $(top_srcdir)/m4/libtool.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/xc-am-iface.m4 \ + $(top_srcdir)/m4/xc-cc-check.m4 \ + $(top_srcdir)/m4/xc-lt-iface.m4 \ + $(top_srcdir)/m4/xc-val-flgs.m4 \ + $(top_srcdir)/m4/zz40-xc-ovr.m4 \ + $(top_srcdir)/m4/zz50-xc-ovr.m4 \ + $(top_srcdir)/m4/zz60-xc-ovr.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) +mkinstalldirs = $(install_sh) -d +CONFIG_HEADER = $(top_builddir)/lib/curl_config.h +CONFIG_CLEAN_FILES = +CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = +SOURCES = +DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__DIST_COMMON = $(srcdir)/Makefile.in +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL = @ACLOCAL@ +AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ +APACHECTL = @APACHECTL@ +APXS = @APXS@ +AR = @AR@ +AR_FLAGS = @AR_FLAGS@ +AS = @AS@ +AUTOCONF = @AUTOCONF@ +AUTOHEADER = @AUTOHEADER@ +AUTOMAKE = @AUTOMAKE@ +AWK = @AWK@ +BLANK_AT_MAKETIME = @BLANK_AT_MAKETIME@ +CADDY = @CADDY@ +CC = @CC@ +CCDEPMODE = @CCDEPMODE@ +CFLAGS = @CFLAGS@ +CFLAG_CURL_SYMBOL_HIDING = @CFLAG_CURL_SYMBOL_HIDING@ +CONFIGURE_OPTIONS = @CONFIGURE_OPTIONS@ +CPP = @CPP@ +CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ +CURLVERSION = @CURLVERSION@ +CURL_CA_BUNDLE = @CURL_CA_BUNDLE@ +CURL_CA_EMBED = @CURL_CA_EMBED@ +CURL_CFLAG_EXTRAS = @CURL_CFLAG_EXTRAS@ +CURL_CPP = @CURL_CPP@ +CURL_DISABLE_DICT = @CURL_DISABLE_DICT@ +CURL_DISABLE_FILE = @CURL_DISABLE_FILE@ +CURL_DISABLE_FTP = @CURL_DISABLE_FTP@ +CURL_DISABLE_GOPHER = @CURL_DISABLE_GOPHER@ +CURL_DISABLE_HTTP = @CURL_DISABLE_HTTP@ +CURL_DISABLE_IMAP = @CURL_DISABLE_IMAP@ +CURL_DISABLE_IPFS = @CURL_DISABLE_IPFS@ +CURL_DISABLE_LDAP = @CURL_DISABLE_LDAP@ +CURL_DISABLE_LDAPS = @CURL_DISABLE_LDAPS@ +CURL_DISABLE_MQTT = @CURL_DISABLE_MQTT@ +CURL_DISABLE_POP3 = @CURL_DISABLE_POP3@ +CURL_DISABLE_PROXY = @CURL_DISABLE_PROXY@ +CURL_DISABLE_RTSP = @CURL_DISABLE_RTSP@ +CURL_DISABLE_SMB = @CURL_DISABLE_SMB@ +CURL_DISABLE_SMTP = @CURL_DISABLE_SMTP@ +CURL_DISABLE_TELNET = @CURL_DISABLE_TELNET@ +CURL_DISABLE_TFTP = @CURL_DISABLE_TFTP@ +CURL_DISABLE_WEBSOCKETS = @CURL_DISABLE_WEBSOCKETS@ +CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX = @CURL_LIBCURL_VERSIONED_SYMBOLS_PREFIX@ +CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME = @CURL_LIBCURL_VERSIONED_SYMBOLS_SONAME@ +CURL_NETWORK_AND_TIME_LIBS = @CURL_NETWORK_AND_TIME_LIBS@ +CURL_NETWORK_LIBS = @CURL_NETWORK_LIBS@ +CURL_WITH_MULTI_SSL = @CURL_WITH_MULTI_SSL@ +CYGPATH_W = @CYGPATH_W@ +DEFAULT_SSL_BACKEND = @DEFAULT_SSL_BACKEND@ +DEFS = @DEFS@ +DEPDIR = @DEPDIR@ +DLLTOOL = @DLLTOOL@ +DSYMUTIL = @DSYMUTIL@ +DUMPBIN = @DUMPBIN@ +ECHO_C = @ECHO_C@ +ECHO_N = @ECHO_N@ +ECHO_T = @ECHO_T@ +EGREP = @EGREP@ +ENABLE_SHARED = @ENABLE_SHARED@ +ENABLE_STATIC = @ENABLE_STATIC@ +ETAGS = @ETAGS@ +EXEEXT = @EXEEXT@ +FGREP = @FGREP@ +FILECMD = @FILECMD@ +FISH_FUNCTIONS_DIR = @FISH_FUNCTIONS_DIR@ +GCOV = @GCOV@ +GREP = @GREP@ +HAVE_BROTLI = @HAVE_BROTLI@ +HAVE_GNUTLS_SRP = @HAVE_GNUTLS_SRP@ +HAVE_LDAP_SSL = @HAVE_LDAP_SSL@ +HAVE_LIBZ = @HAVE_LIBZ@ +HAVE_OPENSSL_SRP = @HAVE_OPENSSL_SRP@ +HAVE_PROTO_BSDSOCKET_H = @HAVE_PROTO_BSDSOCKET_H@ +HAVE_ZSTD = @HAVE_ZSTD@ +HTTPD = @HTTPD@ +HTTPD_NGHTTPX = @HTTPD_NGHTTPX@ +IDN_ENABLED = @IDN_ENABLED@ +INSTALL = @INSTALL@ +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ +IPV6_ENABLED = @IPV6_ENABLED@ +LCOV = @LCOV@ +LD = @LD@ +LDFLAGS = @LDFLAGS@ +LIBCURL_PC_CFLAGS = @LIBCURL_PC_CFLAGS@ +LIBCURL_PC_CFLAGS_PRIVATE = @LIBCURL_PC_CFLAGS_PRIVATE@ +LIBCURL_PC_LDFLAGS_PRIVATE = @LIBCURL_PC_LDFLAGS_PRIVATE@ +LIBCURL_PC_LIBS = @LIBCURL_PC_LIBS@ +LIBCURL_PC_LIBS_PRIVATE = @LIBCURL_PC_LIBS_PRIVATE@ +LIBCURL_PC_REQUIRES = @LIBCURL_PC_REQUIRES@ +LIBCURL_PC_REQUIRES_PRIVATE = @LIBCURL_PC_REQUIRES_PRIVATE@ +LIBOBJS = @LIBOBJS@ +LIBS = @LIBS@ +LIBTOOL = @LIBTOOL@ +LIPO = @LIPO@ +LN_S = @LN_S@ +LTLIBOBJS = @LTLIBOBJS@ +LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ +MAINT = @MAINT@ +MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ +MKDIR_P = @MKDIR_P@ +NM = @NM@ +NMEDIT = @NMEDIT@ +OBJDUMP = @OBJDUMP@ +OBJEXT = @OBJEXT@ +OTOOL = @OTOOL@ +OTOOL64 = @OTOOL64@ +PACKAGE = @PACKAGE@ +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +PACKAGE_NAME = @PACKAGE_NAME@ +PACKAGE_STRING = @PACKAGE_STRING@ +PACKAGE_TARNAME = @PACKAGE_TARNAME@ +PACKAGE_URL = @PACKAGE_URL@ +PACKAGE_VERSION = @PACKAGE_VERSION@ +PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ +PKGADD_NAME = @PKGADD_NAME@ +PKGADD_PKG = @PKGADD_PKG@ +PKGADD_VENDOR = @PKGADD_VENDOR@ +PKGCONFIG = @PKGCONFIG@ +RANLIB = @RANLIB@ +RC = @RC@ +SED = @SED@ +SET_MAKE = @SET_MAKE@ +SHELL = @SHELL@ +SSL_BACKENDS = @SSL_BACKENDS@ +SSL_ENABLED = @SSL_ENABLED@ +SSL_LIBS = @SSL_LIBS@ +STRIP = @STRIP@ +SUPPORT_FEATURES = @SUPPORT_FEATURES@ +SUPPORT_PROTOCOLS = @SUPPORT_PROTOCOLS@ +TEST_NGHTTPX = @TEST_NGHTTPX@ +USE_APPLE_IDN = @USE_APPLE_IDN@ +USE_ARES = @USE_ARES@ +USE_BEARSSL = @USE_BEARSSL@ +USE_GNUTLS = @USE_GNUTLS@ +USE_HYPER = @USE_HYPER@ +USE_LIBPSL = @USE_LIBPSL@ +USE_LIBRTMP = @USE_LIBRTMP@ +USE_LIBSSH = @USE_LIBSSH@ +USE_LIBSSH2 = @USE_LIBSSH2@ +USE_LIBUV = @USE_LIBUV@ +USE_MBEDTLS = @USE_MBEDTLS@ +USE_MSH3 = @USE_MSH3@ +USE_NGHTTP2 = @USE_NGHTTP2@ +USE_NGHTTP3 = @USE_NGHTTP3@ +USE_NGTCP2 = @USE_NGTCP2@ +USE_NGTCP2_CRYPTO_BORINGSSL = @USE_NGTCP2_CRYPTO_BORINGSSL@ +USE_NGTCP2_CRYPTO_GNUTLS = @USE_NGTCP2_CRYPTO_GNUTLS@ +USE_NGTCP2_CRYPTO_QUICTLS = @USE_NGTCP2_CRYPTO_QUICTLS@ +USE_NGTCP2_CRYPTO_WOLFSSL = @USE_NGTCP2_CRYPTO_WOLFSSL@ +USE_NGTCP2_H3 = @USE_NGTCP2_H3@ +USE_OPENLDAP = @USE_OPENLDAP@ +USE_OPENSSL_H3 = @USE_OPENSSL_H3@ +USE_OPENSSL_QUIC = @USE_OPENSSL_QUIC@ +USE_QUICHE = @USE_QUICHE@ +USE_RUSTLS = @USE_RUSTLS@ +USE_SCHANNEL = @USE_SCHANNEL@ +USE_SECTRANSP = @USE_SECTRANSP@ +USE_UNIX_SOCKETS = @USE_UNIX_SOCKETS@ +USE_WIN32_CRYPTO = @USE_WIN32_CRYPTO@ +USE_WIN32_LARGE_FILES = @USE_WIN32_LARGE_FILES@ +USE_WIN32_SMALL_FILES = @USE_WIN32_SMALL_FILES@ +USE_WINDOWS_SSPI = @USE_WINDOWS_SSPI@ +USE_WOLFSSH = @USE_WOLFSSH@ +USE_WOLFSSL = @USE_WOLFSSL@ +VERSION = @VERSION@ +VERSIONNUM = @VERSIONNUM@ +VSFTPD = @VSFTPD@ +ZLIB_LIBS = @ZLIB_LIBS@ +ZSH_FUNCTIONS_DIR = @ZSH_FUNCTIONS_DIR@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ +ac_ct_CC = @ac_ct_CC@ +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ +am__include = @am__include@ +am__leading_dot = @am__leading_dot@ +am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ +bindir = @bindir@ +build = @build@ +build_alias = @build_alias@ +build_cpu = @build_cpu@ +build_os = @build_os@ +build_vendor = @build_vendor@ +builddir = @builddir@ +datadir = @datadir@ +datarootdir = @datarootdir@ +docdir = @docdir@ +dvidir = @dvidir@ +exec_prefix = @exec_prefix@ +host = @host@ +host_alias = @host_alias@ +host_cpu = @host_cpu@ +host_os = @host_os@ +host_vendor = @host_vendor@ +htmldir = @htmldir@ +includedir = @includedir@ +infodir = @infodir@ +install_sh = @install_sh@ +libdir = @libdir@ +libexecdir = @libexecdir@ +libext = @libext@ +localedir = @localedir@ +localstatedir = @localstatedir@ +mandir = @mandir@ +mkdir_p = @mkdir_p@ +oldincludedir = @oldincludedir@ +pdfdir = @pdfdir@ +prefix = @prefix@ +program_transform_name = @program_transform_name@ +psdir = @psdir@ +runstatedir = @runstatedir@ +sbindir = @sbindir@ +sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ +sysconfdir = @sysconfdir@ +target_alias = @target_alias@ +top_build_prefix = @top_build_prefix@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ +EXTRA_DIST = coverage.sh completion.pl firefox-db2pem.sh checksrc.pl \ + mk-ca-bundle.pl mk-unity.pl schemetable.c cd2nroff nroff2cd cdall cd2cd managen \ + dmaketgz maketgz release-tools.sh verify-release cmakelint.sh + +@USE_ZSH_COMPLETION_TRUE@ZSH_COMPLETION_FUNCTION_FILENAME = _curl +@USE_FISH_COMPLETION_TRUE@FISH_COMPLETION_FUNCTION_FILENAME = curl.fish +CLEANFILES = $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) +all: all-am + +.SUFFIXES: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu scripts/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu scripts/Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs +tags TAGS: + +ctags CTAGS: + +cscope cscopelist: + +distdir: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) distdir-am + +distdir-am: $(DISTFILES) + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ + if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile all-local +installdirs: +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + if test -z '$(STRIP)'; then \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + install; \ + else \ + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ + "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ + fi +mostlyclean-generic: + +clean-generic: + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libtool mostlyclean-am + +distclean-am: clean-am distclean-generic + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-data-local + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-generic mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: + +.MAKE: install-am install-strip + +.PHONY: all all-am all-local check check-am clean clean-generic \ + clean-libtool cscopelist-am ctags-am distclean \ + distclean-generic distclean-libtool distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-data-local install-dvi install-dvi-am \ + install-exec install-exec-am install-html install-html-am \ + install-info install-info-am install-man install-pdf \ + install-pdf-am install-ps install-ps-am install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-generic \ + mostlyclean-libtool pdf pdf-am ps ps-am tags-am uninstall \ + uninstall-am + +.PRECIOUS: Makefile + + +all-local: $(ZSH_COMPLETION_FUNCTION_FILENAME) $(FISH_COMPLETION_FUNCTION_FILENAME) + +@USE_ZSH_COMPLETION_TRUE@$(ZSH_COMPLETION_FUNCTION_FILENAME): completion.pl +@CROSSCOMPILING_TRUE@@USE_ZSH_COMPLETION_TRUE@ @echo "NOTICE: we can't generate zsh completion when cross-compiling!" +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \ +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell zsh > $@ ; fi + +@USE_FISH_COMPLETION_TRUE@$(FISH_COMPLETION_FUNCTION_FILENAME): completion.pl +@CROSSCOMPILING_TRUE@@USE_FISH_COMPLETION_TRUE@ @echo "NOTICE: we can't generate fish completion when cross-compiling!" +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ if test -z "$(PERL)"; then echo "No perl: can't install completion script"; else \ +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ $(PERL) $(srcdir)/completion.pl --curl $(top_builddir)/src/curl$(EXEEXT) --shell fish > $@ ; fi + +install-data-local: +@CROSSCOMPILING_TRUE@ @echo "NOTICE: we can't install completion scripts when cross-compiling!" +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ if test -n "$(PERL)"; then \ +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ $(MKDIR_P) $(DESTDIR)$(ZSH_FUNCTIONS_DIR); \ +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ $(INSTALL_DATA) $(ZSH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(ZSH_FUNCTIONS_DIR)/$(ZSH_COMPLETION_FUNCTION_FILENAME) ; \ +@CROSSCOMPILING_FALSE@@USE_ZSH_COMPLETION_TRUE@ fi +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ if test -n "$(PERL)"; then \ +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ $(MKDIR_P) $(DESTDIR)$(FISH_FUNCTIONS_DIR); \ +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ $(INSTALL_DATA) $(FISH_COMPLETION_FUNCTION_FILENAME) $(DESTDIR)$(FISH_FUNCTIONS_DIR)/$(FISH_COMPLETION_FUNCTION_FILENAME) ; \ +@CROSSCOMPILING_FALSE@@USE_FISH_COMPLETION_TRUE@ fi + +distclean: + rm -f $(CLEANFILES) + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/scripts/ciconfig.pl b/scripts/ciconfig.pl deleted file mode 100755 index 93358def21..0000000000 --- a/scripts/ciconfig.pl +++ /dev/null @@ -1,190 +0,0 @@ -#!/usr/bin/env perl -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -# these options are enabled by default in the sense that they will attempt to -# check for and use this feature without the configure flag -my %defaulton = ( - # --enable- - 'shared' => 1, - 'static' => 1, - 'fast-install' => 1, - 'silent-rules' => 1, - 'optimize' => 1, - 'http' => 1, - 'ftp' => 1, - 'file' => 1, - 'ldap' => 1, - 'ldaps' => 1, - 'rtsp' => 1, - 'proxy' => 1, - 'dict' => 1, - 'telnet' => 1, - 'tftp' => 1, - 'pop3' => 1, - 'imap' => 1, - 'smb' => 1, - 'smtp' => 1, - 'gopher' => 1, - 'mqtt' => 1, - 'manual' => 1, - 'libcurl-option' => 1, - 'libgcc' => 1, - 'ipv6' => 1, - 'openssl-auto-load-config' => 1, - 'versioned-symbols' => 1, - 'symbol-hiding' => 1, - 'threaded-resolver' => 1, - 'pthreads' => 1, - 'verbose' => 1, - 'basic-auth' => 1, - 'bearer-auth' => 1, - 'digest-auth' => 1, - 'kerberos-auth' => 1, - 'negotiate-auth' => 1, - 'aws' => 1, - 'ntlm' => 1, - 'ntlm-wb' => 1, - 'tls-srp' => 1, - 'unix-sockets' => 1, - 'cookies' => 1, - 'socketpair' => 1, - 'http-auth' => 1, - 'doh' => 1, - 'mime' => 1, - 'dateparse' => 1, - 'netrc' => 1, - 'progress-meter' => 1, - 'dnsshuffle' => 1, - 'get-easy-options' => 1, - 'alt-svc' => 1, - 'hsts' => 1, - - # --with- - 'aix-soname' => 1, - 'pic' => 1, - 'zlib' => 1, - 'zstd' => 1, - 'brotli' => 1, - 'random' => 1, - 'ca-bundle' => 1, - 'ca-path' => 1, - 'libssh2' => 1, - 'nghttp2' => 1, - 'librtmp' => 1, - 'libidn2' => 1, - 'sysroot' => 1, - 'lber-lib' => 1, - 'ldap-lib' => 1, - - ); - - -sub configureopts { - my ($opts)=@_; - my %thisin; - my %thisout; - - while($opts =~ s/--with-([^ =]*)//) { - $with{$1}++; - $used{$1}++; - $thisin{$1}++; - } - while($opts =~ s/--enable-([^ =]*)//) { - $with{$1}++; - $used{$1}++; - $thisin{$1}++; - } - - while($opts =~ s/--without-([^ =]*)//) { - $without{$1}++; - $used{$1}++; - $thisout{$1}++; - } - while($opts =~ s/--disable-([^ =]*)//) { - $without{$1}++; - $used{$1}++; - $thisout{$1}++; - } - return join(" ", sort(keys %thisin), "/", sort(keys %thisout)); -} - -# run configure --help and check what available WITH/ENABLE options that exist -sub configurehelp { - open(C, "./configure --help|"); - while(<C>) { - if($_ =~ /^ --(with|enable)-([a-z0-9-]+)/) { - $avail{$2}++; - } - } - close(C); -} - -sub scanjobs { - - my $jobs; - open(CI, "./scripts/cijobs.pl|"); - while(<CI>) { - if($_ =~ /^\#\#\#/) { - $jobs++; - } - if($_ =~ /^configure: (.*)/) { - my $c= configureopts($1); - #print "C: $c\n"; - } - } - close(CI); -} - -configurehelp(); -scanjobs(); - -print "Used configure options (with / without)\n"; -for my $w (sort keys %used) { - printf " %s: %d %d%s\n", $w, $with{$w}, $without{$w}, - $defaulton{$w} ? " (auto)":""; -} - -print "Never used configure options\n"; -for my $w (sort keys %avail) { - if(!$used{$w}) { - printf " %s%s\n", $w, - $defaulton{$w} ? " (auto)":""; - } -} - -print "Never ENABLED configure options that aren't on by default\n"; -for my $w (sort keys %avail) { - if(!$with{$w} && !$defaulton{$w}) { - printf " %s\n", $w; - } -} - - -print "ENABLED configure options that aren't available\n"; -for my $w (sort keys %with) { - if(!$avail{$w}) { - printf " %s\n", $w; - } -} diff --git a/scripts/cijobs.pl b/scripts/cijobs.pl deleted file mode 100755 index 7d0a2dec7a..0000000000 --- a/scripts/cijobs.pl +++ /dev/null @@ -1,510 +0,0 @@ -#!/usr/bin/env perl -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -my %filelevel= ('file' => 1, - 'service' => 1); - -my $jobid = 1; - -sub submit { - my ($jref)=@_; - my %job = %$jref; - - printf "\n##### job %u \n", $jobid++; - for my $k (sort keys %job) { - printf "%s: %s\n", $k, $job{$k} if($job{$k}); - undef $$jref{$k} if(!$filelevel{$k}); - } -} - -sub githubactions { - my ($tag)=@_; - my @files= `git ls-tree -r --name-only $tag .github/workflows 2>/dev/null`; - my $c = 0; - foreach my $f (sort @files) { - my $j = 0; - my $m = -1; - my $done = 0; - chomp $f; - open(G, "git show $tag:$f 2>/dev/null|"); - # start counting file jobs - undef %job; - $job{'file'} = $f; - $job{'service'} = "gha"; - my @cc; - my $os; - my $topname; - my $line = 1; - while(<G>) { - $job{'line'} = $line; - if($_ =~ /^name: (.*)/) { - $topname=$1; - } - elsif($_ =~ /runs-on: (.*)/) { - my $r = $1; - #print "runs-on: $r\n"; - if($r =~ /ubuntu/) { - $os = "linux"; - } - elsif($r =~ /macos/) { - $os = "macos"; - } - elsif($r =~ /windows/) { - $os = "windows"; - } - - # commit previously counted jobs - $c += $j; - # non-matrix job - $j = 1; - } - elsif($_ =~ /^\s*matrix:/) { - # switch to matrix mode - $m = 0; - $j = 0; - } - elsif($_ =~ /^ - run: .* apt-get install (.*)/) { - $job{'install'} = $1; - } - elsif($m >= 0) { - if($_ =~ /^ - name: (.*)/) { - # matrix job - #print "name: $1\n"; - $job{'name'} = $1; - $j += ($m?$m:1); - } - elsif($_ =~ /install: (.*)/) { - $job{'install'} = $1; - } - elsif($_ =~ /( |curl-)configure: (.*)/) { - $job{'configure'} = $2; - $job{'os'}=$os; - submit(\%job); - $done++; - } - elsif($_ =~ /generate: (.*)/) { - $job{'cmake'} = $1; - if($m) { - # matrix mode, multiple copies - my %dupe = %job; - for my $cc (@cc) { - %job = %dupe; - $job{'cc'} = $cc; - $job{'os'}=$os; - submit(\%job); - $done++; - } - } - else { - $job{'os'}=$os; - submit(\%job); - $done++; - } - } - elsif($_ =~ /- CC: (.*)/) { - # matrix multiplier - push @cc, $1; - $m++; - } - elsif($_ =~ /^\s*steps:/) { - # disable matrix mode - $m = -1; - } - } - $line++; - } - close(G); - # commit final counted jobs - $c += $j; - - if(!$done) { - $job{'name'} = $topname? $topname : '[unnamed]'; - $job{'os'}=$os; - submit(\%job); - $done++; - } - # reset internal job counter - $j = 0; - } - #print "Jobs: $c\n"; - return $c; -} - -sub azurepipelines { - my ($tag)=@_; - open(G, "git show $tag:.azure-pipelines.yml 2>/dev/null|"); - my $c = 0; - my $j = 0; - my $m = -1; - my $image; - my %job; - my $line = 1; - my $os; - $job{'file'} = ".azure-pipelines.yml"; - $job{'service'} = "azure"; - while(<G>) { - if($_ =~ /^ vmImage: (.*)/) { - my $i = $1; - if($i =~ /ubuntu/) { - $os = "linux"; - } - elsif($i =~ /windows/) { - $os = "windows"; - } - } - elsif($_ =~ /^ - stage: (.*)/) { - my $topname = $1; - if($topname !~ /(windows|linux)/) { - $job{'name'} = $topname; - $job{'line'}=$line; - submit(\%job); - } - } - elsif($_ =~ /job:/) { - # commit previously counted jobs - $c += $j; - # initial value for non-matrix job - $j = 1; - } - elsif($_ =~ /matrix:/) { - # start of new matrix list(!) - $m = 0; - $j = 0; - } - elsif($m >= 0) { - if($_ =~ /^ name: (.*)/) { - # single matrix list entry job - $j++; - $job{'name'} = $1; - } - # azure matrix is a simple list, - # therefore no multiplier needed - elsif($_ =~ /steps:/) { - # disable matrix mode - $m = -1; - } - elsif($_ =~ /^ configure: (.*)/) { - $job{'configure'} = $1; - $job{'line'}=$line; - $job{'os'}=$os; - submit(\%job); - } - } - $line++; - } - close(G); - # commit final counted jobs - $c += $j; - - return $c; -} - -sub appveyor { - my ($tag)=@_; - open(G, "git show $tag:appveyor.yml 2>/dev/null|"); - my $c = 0; - my %job; - my $line=0; - $job{'file'} = "appveyor.yml"; - $job{'service'} = "appveyor"; - - while(<G>) { - $line++; - if($_ =~ /^( - |install)/) { - if($job{'image'}) { - $job{'os'} = "windows"; - submit(\%job); - $c++; - } - } - $job{'line'} = $line; - if($_ =~ /^ APPVEYOR_BUILD_WORKER_IMAGE: \'(.*)\'/) { - $job{'image'}= $1; - } - elsif($_ =~ /^ BUILD_SYSTEM: (.*)/) { - $job{'build'} = lc($1); - } - elsif($_ =~ /^ PRJ_GEN: \'(.*)\'/) { - $job{'compiler'} = $1; - } - elsif($_ =~ /^ PRJ_CFG: (.*)/) { - $job{'config'} = $1; - } - elsif($_ =~ /^ OPENSSL: \'(.*)\'/) { - $job{'openssl'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ SCHANNEL: \'(.*)\'/) { - $job{'schannel'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ ENABLE_UNICODE: \'(.*)\'/) { - $job{'unicode'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ HTTP_ONLY: \'(.*)\'/) { - $job{'http-only'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ TESTING: \'(.*)\'/) { - $job{'testing'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ SHARED: \'(.*)\'/) { - $job{'shared'} = $1 eq "ON" ? "true": "false"; - } - elsif($_ =~ /^ TARGET: \'-A (.*)\'/) { - $job{'target'} = $1; - } - } - close(G); - - return $c; -} - -sub cirrus { - my ($tag)=@_; - open(G, "git show $tag:.cirrus.yml 2>/dev/null|"); - my $c = 0; - my %job; - my $line=0; - my $name = 0; - my $os; - $job{'file'} = ".cirrus.yml"; - $job{'service'} = "cirrus"; - while(<G>) { - $line++; - if($_ =~ /^ ( |-) (name|image_family|image):/) { - $c++; - } - if($_ =~ /^ - name:/) { - if($name) { - $job{'os'} = $os; - $job{'line'} = $line; - submit(\%job); - $name = 0; - } - } - if($_ =~ /^ - name: (.*)/) { - $job{'name'} = $1; - $name = 1; - } - elsif($_ =~ /^ image_family: (.*)/) { - $os = "freebsd"; - } - elsif($_ =~ /^windows_task:/) { - $os = "windows"; - } - elsif($_ =~ /^ prepare: pacman -S --needed --noconfirm --noprogressbar (.*)/) { - $job{'install'} = $1; - } - elsif($_ =~ /^ configure: (.*)/) { - $job{'configure'} = $1; - } - } - close(G); - if($name) { - $job{'os'} = $os; - $job{'line'} = $line; - submit(\%job); - } - return $c; -} - -sub circle { - my ($tag)=@_; - open(G, "git show $tag:.circleci/config.yml 2>/dev/null|"); - my $c = 0; - my $wf = 0; - my %job; - my %cmd; - my %configure; - my %target; - my $line=0; - my $cmds; - my $jobs; - my $workflow; - $job{'file'} = ".circleci/config.yml"; - $job{'service'} = "circleci"; - while(<G>) { - $line++; - if($_ =~ /^commands:/) { - # we record configure lines in this state - $cmds = 1; - } - elsif($cmds) { - if($_ =~ /^ ([^ ]*):/) { - $cmdname = $1; - } - elsif($_ =~ /^ .*.\/configure (.*)/) { - $cmd{$cmdname}=$1; - } - } - if($_ =~ /^jobs:/) { - # we record which job runs with configure here - $jobs = 1; - $cmds = 0; - } - elsif($jobs) { - if($_ =~ /^ ([^ ]*):/) { - $jobname = $1; - } - elsif($_ =~ /^ - (configure.*)/) { - $configure{$jobname}=$1; - } - elsif($_ =~ /^ resource_class: arm.medium/) { - $target{$jobname}="arm"; - } - } - if($_ =~ /^workflows:/) { - $wf = 1; - $cmds = 0; - } - elsif($wf) { - if($_ =~ /^ ([^ ]+):/) { - $workflow = $1; - } - elsif($_ =~ /^ - (.*)\n/) { - my $jb = $1; - my $cnfgure = $configure{$jb}; - my $trgt = $target{$jb}; - $job{'configure'} = $cmd{$cnfgure}; - $job{'name' }=$workflow; - $job{'os'} = "linux"; - $job{'line'} = $line; - $job{'target'} = $trgt if($trgt); - submit(\%job); - } - if($_ =~ / *jobs:/) { - $c++; - } - } - } - close(G); - return $c; -} - -sub zuul { - my ($tag)=@_; - open(G, "git show $tag:zuul.d/jobs.yaml 2>/dev/null|"); - my $c = 0; - my %job; - my $line=0; - my $type; - $job{'file'} = "zuul.d/jobs.yaml"; - $job{'service'} = "zuul"; - while(<G>) { - $line++; - #print "L: ($jobmode / $env) $_"; - if($_ =~ /^- job:/) { - $jobmode = 1; # start a new - $type="configure"; - } - if($jobmode) { - if($apt) { - if($_ =~ /^ - (.*)/) { - my $value = $1; - $job{'install'} .= "$value "; - } - else { - $apt = 0; # end of curl_apt_packages - } - } - if($env) { - if($envcont) { - if($_ =~ /^ (.*)/) { - $job{$envcont} .= "$1 "; - } - else { - $envcont = ""; - } - } - if($_ =~ /^ ([^:]+): (.*)/) { - my ($var, $value) = ($1, $2); - - if($var eq "C") { - $var = $type; - } - elsif($var eq "T") { - $var = "tests"; - if($value eq "cmake") { - # otherwise it remains configure - $type = "cmake"; - } - } - elsif($var eq "CC") { - $var = "compiler"; - } - elsif($var eq "CHECKSRC") { - $job{'checksrc'} = $value ? "true": "false"; - $var = ""; - } - else { - $var = ""; - } - if($value eq ">-") { - $envcont = $var; - } - elsif($var) { - $job{$var} = $value; - } - } - elsif($_ !~ /^ /) { - # end of envs - $env = 0; - } - } - if($_ =~ /^ curl_env:/) { - $env = 1; # start of envs - } - elsif($_ =~ /^ curl_apt_packages:/) { - $apt = 1; # start of apt packages - } - elsif($_ =~ /^ name: (.*)/) { - my $n = $1; - if($n eq "curl-base") { - # not counted - $jobmode = 0; - next; - } - $job{'name'} = $n; - } - elsif($_ =~ /^\n\z/) { - # a job is complete - $job{'line'}=$line; - $job{'os'}="linux"; - submit(\%job); - $jobmode = 0; - $c++; - } - } - } - close(G); - return $c; -} - -my $tag = `git rev-parse --abbrev-ref HEAD 2>/dev/null` || "master"; -chomp $tag; -githubactions($tag); -azurepipelines($tag); -appveyor($tag); -zuul($tag); -cirrus($tag); -circle($tag); diff --git a/scripts/contributors.sh b/scripts/contributors.sh deleted file mode 100755 index ad6f0b5662..0000000000 --- a/scripts/contributors.sh +++ /dev/null @@ -1,99 +0,0 @@ -#!/bin/sh -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -# -# This script shows all mentioned contributors from the given <hash>/<tag> -# until HEAD and adds the contributors already mentioned in the existing -# RELEASE-NOTES. -# - -set -eu - -start="${1:-}" - -if test "$start" = "-h"; then - echo "Usage: $0 <since this tag/hash> [--releasenotes]" - exit -fi -if test -z "$start"; then - start=$(git tag --sort=taggerdate | grep "^curl-" | tail -1) - echo "Since $start:" -fi - -# We also include curl-www if possible. Override by setting CURLWWW -CURLWWW="${CURLWWW:-../curl-www}" - -# filter out Author:, Commit: and *by: lines -# cut off the email parts -# split list of names at comma -# split list of names at " and " -# cut off spaces first and last on the line -# filter alternatives through THANKS-filter -# only count names with a space (ie more than one word) -# sort all unique names -# awk them into RELEASE-NOTES format - -{ - { - git log --pretty=full --use-mailmap "$start..HEAD" - if [ -d "$CURLWWW" ]; then - git -C "$CURLWWW" log --pretty=full --use-mailmap "$start..HEAD" - fi - } | \ - grep -Eai '(^Author|^Commit|by):' | \ - cut -d: -f2- | \ - cut '-d(' -f1 | \ - cut '-d<' -f1 | \ - tr , '\012' | \ - sed 's/ at github/ on github/' | \ - sed 's/ and /\n/' | \ - sed -e 's/^ *//' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/' - - grep -a "^ [^ \(]" RELEASE-NOTES| \ - sed 's/, */\n/g'| \ - sed 's/^ *//' -} | \ -sed -f ./docs/THANKS-filter | \ -sort -fu | \ -awk ' -{ - if(length($0)) { - num++; - n = sprintf("%s%s%s,", n, length(n)?" ":"", $0); - #print n; - if(length(n) > 77) { - printf(" %s\n", p); - n=sprintf("%s,", $0); - } - p=n; - } -} - -END { - pp=substr(p,1,length(p)-1); - printf(" %s\n", pp); - printf(" (%d contributors)\n", num); -} -' diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh deleted file mode 100755 index 2afc30c244..0000000000 --- a/scripts/contrithanks.sh +++ /dev/null @@ -1,73 +0,0 @@ -#!/bin/sh -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -# -# This script shows all mentioned contributors from <hash> until HEAD and -# puts them at the end of the THANKS document on stdout -# - -set -eu - -start="${1:-}" - -if test "$start" = "-h"; then - echo "Usage: $0 <since this tag/hash>" - exit -fi -if test -z "$start"; then - start=$(git tag --sort=taggerdate | grep "^curl-" | tail -1) -fi - -# We also include curl-www if possible. Override by setting CURLWWW -CURLWWW="${CURLWWW:-../curl-www}" - -cat ./docs/THANKS - -{ - { - git log --use-mailmap "$start..HEAD" - if [ -d "$CURLWWW" ]; then - git -C "$CURLWWW" log --use-mailmap "$start..HEAD" - fi - } | \ - grep -Eai '(^Author|^Commit|by):' | \ - cut -d: -f2- | \ - cut '-d(' -f1 | \ - cut '-d<' -f1 | \ - tr , '\012' | \ - sed 's/ at github/ on github/' | \ - sed 's/ and /\n/' | \ - sed -e 's/^ //' -e 's/ $//g' -e 's/@users.noreply.github.com$/ on github/' - - # grep out the list of names from RELEASE-NOTES - # split on ", " - # remove leading whitespace - grep -a "^ [^ (]" RELEASE-NOTES| \ - sed 's/, */\n/g'| \ - sed 's/^ *//' -} | \ -sed -f ./docs/THANKS-filter | \ -sort -fu | \ -grep -aixvFf ./docs/THANKS diff --git a/scripts/delta b/scripts/delta deleted file mode 100755 index 43bc25ce1b..0000000000 --- a/scripts/delta +++ /dev/null @@ -1,169 +0,0 @@ -#!/usr/bin/env perl -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -# Display changes done in the repository from [tag] until now. -# -# Uses git for repo data. -# Uses docs/THANKS and RELEASE-NOTES for current status. -# -# In the git clone root, invoke 'scripts/delta [release tag]' - -$start = $ARGV[0]; - -if($start eq "-h") { - print "Usage: summary [tag]\n"; - exit; -} -elsif($start eq "") { - $start = `git tag --sort=taggerdate | grep "^curl-" | tail -1`; - chomp $start; -} - -$commits = `git log --oneline $start.. | wc -l`; -$committers = `git shortlog -s $start.. | wc -l`; -$bcommitters = `git shortlog -s $start | wc -l`; - -$acommits = `git log --oneline | wc -l`; -$acommitters = `git shortlog -s | wc -l`; - -# delta from now compared to before -$ncommitters = $acommitters - $bcommitters; - -# number of contributors right now -$acontribs = `./scripts/contrithanks.sh | grep -c '^[^ ]'`; -# number when the tag was set -$bcontribs = `git show $start:docs/THANKS | grep -c '^[^ ]'`; -# delta -$contribs = $acontribs - $bcontribs; - -# number of setops: -sub setopts { - my ($f)=@_; - open(H, "$f"); - my $opts; - while(<H>) { - if(/^ CURLOPT(|DEPRECATED)\(/ && ($_ !~ /OBSOLETE/)) { - $opts++; - } - } - close(H); - return $opts; -} -$asetopts = setopts("<include/curl/curl.h"); -$bsetopts = setopts("git show $start:include/curl/curl.h|"); -$nsetopts = $asetopts - $bsetopts; - -# Number of command line options: -$aoptions=`grep -c '{"....--' src/tool_listhelp.c`; -$boptions=`git show $start:src/tool_listhelp.c 2>/dev/null | grep -c '{"....--'`; -$noptions=$aoptions - $boptions; - -# current local branch -$branch=`git rev-parse --abbrev-ref HEAD 2>/dev/null`; -chomp $branch; -# Number of files in git -$afiles=`git ls-files | wc -l`; -$deletes=`git diff-tree --diff-filter=A -r --summary origin/$branch $start 2>/dev/null | wc -l`; -$creates=`git diff-tree --diff-filter=D -r --summary origin/$branch $start 2>/dev/null| wc -l`; - -# Time since that tag -$tagged=`git for-each-ref --format="%(refname:short) | %(taggerdate:unix)" refs/tags/* | grep ^$start | cut "-d|" -f2`; # Unix timestamp -$taggednice=`git for-each-ref --format="%(refname:short) | %(creatordate)" refs/tags/* | grep ^$start | cut '-d|' -f2`; # human readable time -chomp $taggednice; -$now=`date +%s`; -$elapsed=$now - $tagged; # number of seconds since tag -$total=$now - `date -d 19980320 +%s`; - -# Number of public functions in libcurl -$apublic=`git grep ^CURL_EXTERN -- include/curl | wc -l`; -$bpublic=`git grep ^CURL_EXTERN $start -- include/curl | wc -l`; -$public = $apublic - $bpublic; - -# diffstat -$diffstat=`git diff --stat $start.. | tail -1`; -if($diffstat =~ /^ *(\d+) files changed, (\d+) insertions\(\+\), (\d+)/) { - ($fileschanged, $insertions, $deletions)=($1, $2, $3); -} - -# Changes/bug-fixes currently logged -open(F, "<RELEASE-NOTES"); -while(<F>) { - if($_ =~ /following changes:/) { - $mode=1; - } - elsif($_ =~ /following bugfixes:/) { - $mode=2; - } - elsif($_ =~ /known bugs:/) { - $mode=3; - } - elsif($_ =~ /like these:/) { - $mode=4; - } - if($_ =~ /^ o /) { - if($mode == 1) { - $numchanges++; - } - elsif($mode == 2) { - $numbugfixes++; - } - } - if(($mode == 4) && ($_ =~ /^ \((\d+) contributors/)) { - $numcontributors = $1; - } -} -close(F); - -######################################################################## -# Produce the summary - -print "== Since $start $taggednice ==\n"; -my $days = $elapsed / 3600 / 24; -printf "Elapsed time: %.1f days (total %d)\n", - $days, $total / 3600 / 24; -printf "Commits: %d (total %d)\n", - $commits, $acommits; -printf "Commit authors: %d, %d new (total %d)\n", - $committers, $ncommitters, $acommitters; -printf "Contributors: %d, %d new (total %d)\n", - $numcontributors, $contribs, $acontribs; -printf "New public functions: %d (total %d)\n", - $public, $apublic; -printf "New curl_easy_setopt() options: %d (total %d)\n", - $nsetopts, $asetopts; -printf "New command line options: %d (total %d)\n", - $noptions, $aoptions; -printf "Changes logged: %d\n", $numchanges; -printf "Bugfixes logged: %d (%.2f per day)\n", - $numbugfixes, $numbugfixes / $days; -printf "Added files: %d (total %d)\n", - $creates, $afiles; -printf "Deleted files: %d (delta: %d)\n", $deletes, - $creates - $deletes; -print "Diffstat:$diffstat" if(!$fileschanged); -printf "Files changed: %d (%.2f%%)\n", $fileschanged, $fileschanged*100/$afiles; -printf "Lines inserted: %d\n", $insertions; -printf "Lines deleted: %d (delta: %d)\n", $deletions, - $insertions - $deletions; diff --git a/scripts/installcheck.sh b/scripts/installcheck.sh deleted file mode 100755 index b13db2aa39..0000000000 --- a/scripts/installcheck.sh +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env bash -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -set -eu - -PREFIX="${1:-}" - -# Run this script in the root of the git clone. Point out the install prefix -# where 'make install' has already installed curl. - -if test -z "$PREFIX"; then - echo "scripts/installcheck.sh [PREFIX]" - exit -fi - -diff -u <(find docs/libcurl/ -name "*.3" -printf "%f\n" | grep -v template | sort) <(find "$PREFIX/share/man/" -name "*.3" -printf "%f\n" | sort) - -if test "$?" -ne "0"; then - echo "ERROR: installed libcurl docs mismatch" - exit 2 -fi - -diff -u <(find include/ -name "*.h" -printf "%f\n" | sort) <(find "$PREFIX/include/" -name "*.h" -printf "%f\n" | sort) - -if test "$?" -ne "0"; then - echo "ERROR: installed include files mismatch" - exit 1 -fi - -echo "installcheck: installed libcurl docs and include files look good" diff --git a/scripts/release-notes.pl b/scripts/release-notes.pl deleted file mode 100755 index 136b48f0ad..0000000000 --- a/scripts/release-notes.pl +++ /dev/null @@ -1,243 +0,0 @@ -#!/usr/bin/env perl -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### - -############################################### -# -# ==== How to use this script ==== -# -# 1. Get recent commits added to RELEASE-NOTES: -# -# $ ./scripts/release-notes.pl -# -# 2. Edit RELEASE-NOTES and remove all entries that don't belong. Unused -# references below will be cleaned up in the next step. Make sure to move -# "changes" up to the changes section. All entries will by default be listed -# under bug-fixes as this script can't know where to put them. -# -# 3. Run the cleanup script and let it sort the entries and remove unused -# references from lines you removed in step (2): -# -# $ ./scripts/release-notes.pl cleanup -# -# 4. Reload RELEASE-NOTES and verify that things look okay. The cleanup -# procedure can and should be re-run when lines are removed or rephrased. -# -# 5. Run ./scripts/contributors.sh and update the contributor list of names -# The list can also be extended or edited manually. -# -# 6. Run ./scripts/delta and update the contributor count at the top, and -# double-check/update the other counters. -# -# 7. Commit the file using "RELEASE-NOTES: synced" as commit message. -# -################################################ - -my $cleanup = ($ARGV[0] eq "cleanup"); -my @gitlog=`git log @^{/RELEASE-NOTES:.synced}..` if(!$cleanup); -my @releasenotes=`cat RELEASE-NOTES`; - -my @o; # the entire new RELEASE-NOTES -my @refused; # [num] = [2 bits of use info] -my @refs; # [number] = [URL] -for my $l (@releasenotes) { - if($l =~ /^ o .*\[(\d+)\]/) { - # referenced, set bit 0 - $refused[$1]=1; - } - elsif($l =~ /^ \[(\d+)\] = (.*)/) { - # listed in a reference, set bit 1 - $refused[$1] |= 2; - $refs[$1] = $2; - } -} - -# Return a new fresh reference number -sub getref { - for my $r (1 .. $#refs) { - if(!$refused[$r] & 1) { - return $r; - } - } - # add at the end - return $#refs + 1; -} - -# '#num' -# 'num' -# 'https://github.com/curl/curl/issues/6939' -# 'https://github.com/curl/curl-www/issues/69' -# 'https://elsewhere.example.com/discussion' - -sub extract { - my ($ref)=@_; - if($ref =~ /^(\#|)(\d+)/) { - # return the plain number - return $2; - } - elsif($ref =~ /^https:\/\/github.com\/curl\/curl\/.*\/(\d+)/) { - # return the plain number - return $1; - } - elsif($ref =~ /:\/\//) { - # contains a '://', return the URL - return $ref; - } - # false alarm, not a valid line -} - -my $short; -my $first; -for my $l (@gitlog) { - chomp $l; - if($l =~ /^commit/) { - if($first) { - onecommit($short); - } - # starts a new commit - undef @fixes; - undef @closes; - undef @bug; - $short = ""; - $first = 0; - } - elsif(($l =~ /^ (.*)/) && !$first) { - # first line - $short = $1; - $short =~ s/ ?\[(ci skip|skip ci)\]//g; - $first = 1; - push @line, $short; - } - elsif(($l =~ /^ (.*)/) && $first) { - # not the first - my $line = $1; - - if($line =~ /^Fixes(:|) *(.*)/i) { - my $ref = extract($2); - push @fixes, $ref if($ref); - } - elsif($line =~ /^Clo(s|)es(:|) *(.*)/i) { - my $ref = extract($3); - push @closes, $ref if($ref); - } - elsif($line =~ /^Bug: (.*)/i) { - my $ref = extract($1); - push @bug, $ref if($ref); - } - } -} -if($first) { - onecommit($short); -} - -# call at the end of a parsed commit -sub onecommit { - my ($short)=@_; - my $ref; - - if($bug[0]) { - $ref = $bug[0]; - } - elsif($fixes[0]) { - $ref = $fixes[0]; - } - elsif($closes[0]) { - $ref = $closes[0]; - } - - if($ref =~ /^#?(\d+)/) { - $ref = "https://curl.se/bug/?i=$1" - } - if($ref) { - my $r = getref(); - $refs[$r] = $ref; - $moreinfo{$short}=$r; - $refused[$r] |= 1; - } -} - -#### Output the new RELEASE-NOTES - -my @bullets; -for my $l (@releasenotes) { - if(($l =~ /^This release includes the following bugfixes:/) && !$cleanup) { - push @o, $l; - push @o, "\n"; - for my $f (@line) { - push @o, sprintf " o %s%s\n", $f, - $moreinfo{$f}? sprintf(" [%d]", $moreinfo{$f}): ""; - $refused[$moreinfo{$f}]=3; - } - push @o, " --- new entries are listed above this ---"; - next; - } - elsif($cleanup) { - if($l =~ /^ --- new entries are listed/) { - # ignore this if still around - next; - } - elsif($l =~ /^ o .*/) { - push @bullets, $l; - next; - } - elsif($bullets[0]) { - # output them case insensitively - for my $b (sort { "\L$a" cmp "\L$b" } @bullets) { - push @o, $b; - } - undef @bullets; - } - } - if($l =~ /^ \[(\d+)\] = /) { - # stop now - last; - } - else { - push @o, $l; - } -} - -my @srefs; -my $ln; -for my $n (1 .. $#refs) { - my $r = $refs[$n]; - if($r && ($refused[$n] & 1)) { - push @o, sprintf " [%d] = %s\n", $n, $r; - } -} - -open(O, ">RELEASE-NOTES"); -for my $l (@o) { - print O $l; -} -close(O); - -exit; - -# Debug: show unused references -for my $r (1 .. $#refs) { - if($refused[$r] != 3) { - printf "%s is %d!\n", $r, $refused[$r]; - } -} diff --git a/scripts/singleuse.pl b/scripts/singleuse.pl deleted file mode 100755 index 42c5d27d8f..0000000000 --- a/scripts/singleuse.pl +++ /dev/null @@ -1,244 +0,0 @@ -#!/usr/bin/env perl -#*************************************************************************** -# _ _ ____ _ -# Project ___| | | | _ \| | -# / __| | | | |_) | | -# | (__| |_| | _ <| |___ -# \___|\___/|_| \_\_____| -# -# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. -# -# This software is licensed as described in the file COPYING, which -# you should have received as part of this distribution. The terms -# are also available at https://curl.se/docs/copyright.html. -# -# You may opt to use, copy, modify, merge, publish, distribute and/or sell -# copies of the Software, and permit persons to whom the Software is -# furnished to do so, under the terms of the COPYING file. -# -# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY -# KIND, either express or implied. -# -# SPDX-License-Identifier: curl -# -########################################################################### -# -# This script is aimed to help scan for and detect globally declared functions -# that are not used from other source files. -# -# Use it like this: -# -# $ ./scripts/singleuse.pl [--unit] lib/.libs/libcurl.a -# -# --unit : built to support unit tests -# - -my $unittests; -if($ARGV[0] eq "--unit") { - $unittests = "tests/unit "; - shift @ARGV; -} - -my $file = $ARGV[0]; - -my %wl = ( - 'curlx_uztoso' => 'cmdline tool use', - 'Curl_xfer_write_resp' => 'internal api', - 'Curl_creader_def_init' => 'internal api', - 'Curl_creader_def_close' => 'internal api', - 'Curl_creader_def_read' => 'internal api', - 'Curl_creader_def_total_length' => 'internal api', -); - -my %api = ( - 'curl_easy_cleanup' => 'API', - 'curl_easy_duphandle' => 'API', - 'curl_easy_escape' => 'API', - 'curl_easy_getinfo' => 'API', - 'curl_easy_init' => 'API', - 'curl_easy_pause' => 'API', - 'curl_easy_perform' => 'API', - 'curl_easy_recv' => 'API', - 'curl_easy_reset' => 'API', - 'curl_easy_send' => 'API', - 'curl_easy_setopt' => 'API', - 'curl_easy_strerror' => 'API', - 'curl_easy_unescape' => 'API', - 'curl_easy_upkeep' => 'API', - 'curl_easy_option_by_id' => 'API', - 'curl_easy_option_by_name' => 'API', - 'curl_easy_option_next' => 'API', - 'curl_escape' => 'API', - 'curl_formadd' => 'API', - 'curl_formfree' => 'API', - 'curl_formget' => 'API', - 'curl_free' => 'API', - 'curl_getdate' => 'API', - 'curl_getenv' => 'API', - 'curl_global_cleanup' => 'API', - 'curl_global_init' => 'API', - 'curl_global_init_mem' => 'API', - 'curl_global_sslset' => 'API', - 'curl_global_trace' => 'API', - 'curl_maprintf' => 'API', - 'curl_mfprintf' => 'API', - 'curl_mime_addpart' => 'API', - 'curl_mime_data' => 'API', - 'curl_mime_data_cb' => 'API', - 'curl_mime_encoder' => 'API', - 'curl_mime_filedata' => 'API', - 'curl_mime_filename' => 'API', - 'curl_mime_free' => 'API', - 'curl_mime_headers' => 'API', - 'curl_mime_init' => 'API', - 'curl_mime_name' => 'API', - 'curl_mime_subparts' => 'API', - 'curl_mime_type' => 'API', - 'curl_mprintf' => 'API', - 'curl_msnprintf' => 'API', - 'curl_msprintf' => 'API', - 'curl_multi_add_handle' => 'API', - 'curl_multi_assign' => 'API', - 'curl_multi_cleanup' => 'API', - 'curl_multi_fdset' => 'API', - 'curl_multi_get_handles' => 'API', - 'curl_multi_info_read' => 'API', - 'curl_multi_init' => 'API', - 'curl_multi_perform' => 'API', - 'curl_multi_remove_handle' => 'API', - 'curl_multi_setopt' => 'API', - 'curl_multi_socket' => 'API', - 'curl_multi_socket_action' => 'API', - 'curl_multi_socket_all' => 'API', - 'curl_multi_poll' => 'API', - 'curl_multi_strerror' => 'API', - 'curl_multi_timeout' => 'API', - 'curl_multi_wait' => 'API', - 'curl_multi_waitfds' => 'API', - 'curl_multi_wakeup' => 'API', - 'curl_mvaprintf' => 'API', - 'curl_mvfprintf' => 'API', - 'curl_mvprintf' => 'API', - 'curl_mvsnprintf' => 'API', - 'curl_mvsprintf' => 'API', - 'curl_pushheader_byname' => 'API', - 'curl_pushheader_bynum' => 'API', - 'curl_share_cleanup' => 'API', - 'curl_share_init' => 'API', - 'curl_share_setopt' => 'API', - 'curl_share_strerror' => 'API', - 'curl_slist_append' => 'API', - 'curl_slist_free_all' => 'API', - 'curl_strequal' => 'API', - 'curl_strnequal' => 'API', - 'curl_unescape' => 'API', - 'curl_url' => 'API', - 'curl_url_cleanup' => 'API', - 'curl_url_dup' => 'API', - 'curl_url_get' => 'API', - 'curl_url_set' => 'API', - 'curl_url_strerror' => 'API', - 'curl_version' => 'API', - 'curl_version_info' => 'API', - 'curl_easy_header' => 'API', - 'curl_easy_nextheader' => 'API', - 'curl_ws_meta' => 'API', - 'curl_ws_recv' => 'API', - 'curl_ws_send' => 'API', - - # the following functions are provided globally in debug builds - 'curl_easy_perform_ev' => 'debug-build', - ); - -sub doublecheck { - my ($f, $used) = @_; - open(F, "git grep -Fwle '$f' -- lib ${unittests}packages|"); - my @also; - while(<F>) { - my $e = $_; - chomp $e; - if($e =~ /\.[c]$/) { - if($e !~ /^lib\/${used}\.c/) { - push @also, $e; - } - } - } - close(F); - return @also; -} - -open(N, "nm $file|") || - die; - -my %exist; -my %uses; -my $file; -while (<N>) { - my $l = $_; - chomp $l; - - if($l =~ /^([0-9a-z_-]+)\.o:/) { - $file = $1; - } - # libcurl.a(unity_0_c.c.o): - elsif($l =~ /\(([0-9a-z_.-]+)\.o\):/) { # Apple nm - $file = $1; - } - if($l =~ /^([0-9a-f]+) T _?(.*)/) { - my ($name)=($2); - #print "Define $name in $file\n"; - $file =~ s/^libcurl_la-//; - $exist{$name} = $file; - } - elsif($l =~ /^ U _?(.*)/) { - my ($name)=($1); - #print "Uses $name in $file\n"; - $uses{$name} .= "$file, "; - } -} -close(N); - -my $err; -for(sort keys %exist) { - #printf "%s is defined in %s, used by: %s\n", $_, $exist{$_}, $uses{$_}; - if(!$uses{$_}) { - # this is a symbol with no "global" user - if($_ =~ /^curl_dbg_/) { - # we ignore the memdebug symbols - } - elsif($_ =~ /^curl_/) { - if(!$api{$_}) { - # not present in the API, or for debug-builds - print STDERR "Bad curl-prefix: $_\n"; - $err++; - } - } - elsif($wl{$_}) { - #print "$_ is WL\n"; - } - else { - my $c = $_; - my @also = doublecheck($c, $exist{$c}); - if(!scalar(@also)) { - printf "%s in %s\n", $c, $exist{$c}; - $err++; - } - # foreach my $a (@also) { - # print " $a\n"; - # } - } - } - elsif($_ =~ /^curl_/) { - # global prefix, make sure it is "blessed" - if(!$api{$_}) { - # not present in the API, or for debug-builds - if($_ !~ /^curl_dbg_/) { - # ignore the memdebug symbols - print STDERR "Bad curl-prefix $_\n"; - $err++; - } - } - } -} - -exit $err; |
