update-curl.bash 910 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="curl"
  6. readonly ownership="Curl Upstream <curl-library@cool.haxx.se>"
  7. readonly subtree="Utilities/cmcurl"
  8. readonly repo="https://github.com/curl/curl.git"
  9. readonly tag="curl-7_58_0"
  10. readonly shortlog=false
  11. readonly paths="
  12. CMake/*
  13. CMakeLists.txt
  14. COPYING
  15. include/curl/*.h
  16. lib/*.c
  17. lib/*.h
  18. lib/CMakeLists.txt
  19. lib/Makefile.inc
  20. lib/curl_config.h.cmake
  21. lib/libcurl.rc
  22. lib/vauth/*.c
  23. lib/vauth/*.h
  24. lib/vtls/*.c
  25. lib/vtls/*.h
  26. "
  27. extract_source () {
  28. git_archive
  29. pushd "${extractdir}/${name}-reduced"
  30. rm lib/config-*.h
  31. chmod a-x lib/connect.c
  32. for f in \
  33. lib/cookie.c \
  34. lib/krb5.c \
  35. lib/security.c \
  36. ; do
  37. iconv -f LATIN1 -t UTF8 $f -o $f.utf-8
  38. mv $f.utf-8 $f
  39. done
  40. echo "* -whitespace" > .gitattributes
  41. popd
  42. }
  43. . "${BASH_SOURCE%/*}/update-third-party.bash"