update-curl.bash 972 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash

set -e
set -x
shopt -s dotglob

readonly name="curl"
readonly ownership="Curl Upstream <curl-library@cool.haxx.se>"
readonly subtree="Utilities/cmcurl"
10
readonly repo="https://github.com/curl/curl.git"
11
readonly tag="curl-7_74_0"
12
13
14
15
16
17
18
19
20
21
22
23
readonly shortlog=false
readonly paths="
  CMake/*
  CMakeLists.txt
  COPYING
  include/curl/*.h
  lib/*.c
  lib/*.h
  lib/CMakeLists.txt
  lib/Makefile.inc
  lib/curl_config.h.cmake
  lib/libcurl.rc
24
25
  lib/vauth/*.c
  lib/vauth/*.h
26
27
28
29
  lib/vquic/*.c
  lib/vquic/*.h
  lib/vssh/*.c
  lib/vssh/*.h
30
31
32
33
34
35
36
37
  lib/vtls/*.c
  lib/vtls/*.h
"

extract_source () {
    git_archive
    pushd "${extractdir}/${name}-reduced"
    rm lib/config-*.h
38
39
40
41
42
43
44
45
46
    chmod a-x lib/connect.c
    for f in \
      lib/cookie.c \
      lib/krb5.c \
      lib/security.c \
      ; do
        iconv -f LATIN1 -t UTF8 $f -o $f.utf-8
        mv $f.utf-8 $f
    done
47
    echo "* -whitespace" > .gitattributes
48
49
50
51
    popd
}

. "${BASH_SOURCE%/*}/update-third-party.bash"