cmake/Utilities/Scripts/update-curl.bash

48 lines
910 B
Bash
Raw Normal View History

2016-09-11 17:22:32 +02:00
#!/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"
2016-10-30 18:24:19 +01:00
readonly repo="https://github.com/curl/curl.git"
2018-11-29 20:27:00 +01:00
readonly tag="curl-7_62_0"
2016-09-11 17:22:32 +02:00
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
lib/vauth/*.c
lib/vauth/*.h
lib/vtls/*.c
lib/vtls/*.h
"
extract_source () {
git_archive
pushd "${extractdir}/${name}-reduced"
rm lib/config-*.h
2018-01-26 17:06:56 +01:00
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
2017-07-20 19:35:53 +02:00
echo "* -whitespace" > .gitattributes
2016-09-11 17:22:32 +02:00
popd
}
. "${BASH_SOURCE%/*}/update-third-party.bash"