Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-zlib.bash
3148 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 paths="
14
README
15
16
adler32.c
17
compress.c
18
crc32.c
19
crc32.h
20
deflate.c
21
deflate.h
22
gzclose.c
23
gzguts.h
24
gzlib.c
25
gzread.c
26
gzwrite.c
27
inffast.c
28
inffast.h
29
inffixed.h
30
inflate.c
31
inflate.h
32
inftrees.c
33
inftrees.h
34
trees.c
35
trees.h
36
uncompr.c
37
zconf.h
38
zlib.h
39
zutil.c
40
zutil.h
41
"
42
43
extract_source () {
44
git_archive
45
pushd "${extractdir}/${name}-reduced"
46
echo "* -whitespace" > .gitattributes
47
echo -n "'zlib' general purpose compression library
48
version 1.3.1, January 22nd, 2024
49
50
Copyright " > Copyright.txt
51
sed -n '/^ (C) 1995-/,+19 {s/^ \?//;p}' README >> Copyright.txt
52
popd
53
}
54
55
. "${BASH_SOURCE%/*}/update-third-party.bash"
56
57