update-curl.bash 910 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_62_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 30 31 32 33
  lib/vtls/*.c
  lib/vtls/*.h
"

extract_source () {
    git_archive
    pushd "${extractdir}/${name}-reduced"
    rm lib/config-*.h
34 35 36 37 38 39 40 41 42
    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
43
    echo "* -whitespace" > .gitattributes
44 45 46 47
    popd
}

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