Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-zlib.bash
5012 views
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
shopt -s dotglob
6
7
readonly name="zlib"
8
readonly ownership="zlib upstream <[email protected]>"
9
readonly subtree="Utilities/cmzlib"
10
readonly repo="https://github.com/madler/zlib.git"
11
readonly tag="v1.3.1" # When updating, sync Copyright.txt below!
12
readonly shortlog=false
13
readonly exact_tree_match=false
14
readonly paths="
15
README
16
17
adler32.c
18
compress.c
19
crc32.c
20
crc32.h
21
deflate.c
22
deflate.h
23
gzclose.c
24
gzguts.h
25
gzlib.c
26
gzread.c
27
gzwrite.c
28
inffast.c
29
inffast.h
30
inffixed.h
31
inflate.c
32
inflate.h
33
inftrees.c
34
inftrees.h
35
trees.c
36
trees.h
37
uncompr.c
38
zconf.h
39
zlib.h
40
zutil.c
41
zutil.h
42
"
43
44
extract_source () {
45
git_archive
46
pushd "${extractdir}/${name}-reduced"
47
echo "* -whitespace" > .gitattributes
48
echo -n "'zlib' general purpose compression library
49
version 1.3.1, January 22nd, 2024
50
51
Copyright " > Copyright.txt
52
sed -n '/^ (C) 1995-/,+19 {s/^ \?//;p}' README >> Copyright.txt
53
popd
54
}
55
56
. "${BASH_SOURCE%/*}/update-third-party.bash"
57
58