Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-nghttp2.bash
5003 views
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
shopt -s dotglob
6
7
readonly name="nghttp2"
8
readonly ownership="nghttp2 upstream <[email protected]>"
9
readonly subtree="Utilities/cmnghttp2"
10
readonly repo="https://github.com/nghttp2/nghttp2.git"
11
readonly tag="v1.52.0" # When updating, sync PACKAGE_VERSION below!
12
readonly shortlog=false
13
readonly exact_tree_match=false
14
readonly paths="
15
COPYING
16
lib/*.c
17
lib/*.h
18
lib/includes/nghttp2/nghttp2.h
19
lib/includes/nghttp2/nghttp2ver.h.in
20
"
21
22
extract_source () {
23
git_archive
24
pushd "${extractdir}/${name}-reduced"
25
echo "* -whitespace" > .gitattributes
26
mv lib/includes/nghttp2/nghttp2ver.h.in lib/includes/nghttp2/nghttp2ver.h
27
sed -i 's/@PACKAGE_VERSION@/1.52.0/;s/@PACKAGE_VERSION_NUM@/0x013400/' lib/includes/nghttp2/nghttp2ver.h
28
popd
29
}
30
31
. "${BASH_SOURCE%/*}/update-third-party.bash"
32
33