Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-nghttp2.bash
3148 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 paths="
14
COPYING
15
lib/*.c
16
lib/*.h
17
lib/includes/nghttp2/nghttp2.h
18
lib/includes/nghttp2/nghttp2ver.h.in
19
"
20
21
extract_source () {
22
git_archive
23
pushd "${extractdir}/${name}-reduced"
24
echo "* -whitespace" > .gitattributes
25
mv lib/includes/nghttp2/nghttp2ver.h.in lib/includes/nghttp2/nghttp2ver.h
26
sed -i 's/@PACKAGE_VERSION@/1.52.0/;s/@PACKAGE_VERSION_NUM@/0x013400/' lib/includes/nghttp2/nghttp2ver.h
27
popd
28
}
29
30
. "${BASH_SOURCE%/*}/update-third-party.bash"
31
32