Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-libarchive.bash
5000 views
1
#!/usr/bin/env bash
2
3
set -e
4
set -x
5
shopt -s dotglob
6
7
readonly name="LibArchive"
8
readonly ownership="LibArchive Upstream <[email protected]>"
9
readonly subtree="Utilities/cmlibarchive"
10
readonly repo="https://github.com/libarchive/libarchive.git"
11
readonly tag="v3.8.5"
12
readonly shortlog=false
13
readonly exact_tree_match=false
14
readonly paths="
15
CMakeLists.txt
16
COPYING
17
CTestConfig.cmake
18
build/cmake
19
build/pkgconfig
20
build/utils
21
build/version
22
libarchive/*.*
23
"
24
25
extract_source () {
26
git_archive
27
pushd "${extractdir}/${name}-reduced"
28
fromdos build/cmake/Find*.cmake
29
echo "* -whitespace" > .gitattributes
30
echo "" >> libarchive/archive_read_open_file.c
31
popd
32
}
33
34
. "${BASH_SOURCE%/*}/update-third-party.bash"
35
36