cmake/Utilities/Scripts/update-curl.bash

52 lines
972 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"
2022-03-29 21:10:50 +02:00
readonly ownership="Curl Upstream <curl-library@lists.haxx.se>"
2016-09-11 17:22:32 +02:00
readonly subtree="Utilities/cmcurl"
2016-10-30 18:24:19 +01:00
readonly repo="https://github.com/curl/curl.git"
2023-07-02 19:51:09 +02:00
readonly tag="curl-8_1_2"
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
2020-08-30 11:54:41 +02:00
lib/vquic/*.c
lib/vquic/*.h
lib/vssh/*.c
lib/vssh/*.h
2016-09-11 17:22:32 +02:00
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"