From 3e9b03439f6fa16abf555f37016e0f45f2073b78 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 3 Aug 2016 11:50:27 -0400 Subject: [PATCH] Add script to update curl from upstream --- Utilities/Scripts/update-curl.bash | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100755 Utilities/Scripts/update-curl.bash diff --git a/Utilities/Scripts/update-curl.bash b/Utilities/Scripts/update-curl.bash new file mode 100755 index 000000000..17a4f2cdf --- /dev/null +++ b/Utilities/Scripts/update-curl.bash @@ -0,0 +1,36 @@ +#!/usr/bin/env bash + +set -e +set -x +shopt -s dotglob + +readonly name="curl" +readonly ownership="Curl Upstream " +readonly subtree="Utilities/cmcurl" +readonly repo="https://github.com/bagder/curl.git" +readonly tag="curl-7_44_0" +readonly shortlog=false +readonly paths=" + CMake/* + CMakeLists.txt + COPYING + include/curl/*.h + include/curl/curlbuild.h.cmake + lib/*.c + lib/*.h + lib/CMakeLists.txt + lib/Makefile.inc + lib/curl_config.h.cmake + lib/libcurl.rc + lib/vtls/*.c + lib/vtls/*.h +" + +extract_source () { + git_archive + pushd "${extractdir}/${name}-reduced" + rm lib/config-*.h + popd +} + +. "${BASH_SOURCE%/*}/update-third-party.bash"