update-curl.bash 972 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #!/usr/bin/env bash
  2. set -e
  3. set -x
  4. shopt -s dotglob
  5. readonly name="curl"
  6. readonly ownership="Curl Upstream <[email protected]>"
  7. readonly subtree="Utilities/cmcurl"
  8. readonly repo="https://github.com/curl/curl.git"
  9. readonly tag="curl-8_4_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/vquic/*.c
  25. lib/vquic/*.h
  26. lib/vssh/*.c
  27. lib/vssh/*.h
  28. lib/vtls/*.c
  29. lib/vtls/*.h
  30. "
  31. extract_source () {
  32. git_archive
  33. pushd "${extractdir}/${name}-reduced"
  34. rm lib/config-*.h
  35. chmod a-x lib/connect.c
  36. for f in \
  37. lib/cookie.c \
  38. lib/krb5.c \
  39. lib/security.c \
  40. ; do
  41. iconv -f LATIN1 -t UTF8 $f -o $f.utf-8
  42. mv $f.utf-8 $f
  43. done
  44. echo "* -whitespace" > .gitattributes
  45. popd
  46. }
  47. . "${BASH_SOURCE%/*}/update-third-party.bash"