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