Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Kitware
GitHub Repository: Kitware/CMake
Path: blob/master/Utilities/Scripts/update-libarchive.bash
3148 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.7.9"
12
readonly shortlog=false
13
readonly paths="
14
CMakeLists.txt
15
COPYING
16
CTestConfig.cmake
17
build/cmake
18
build/pkgconfig
19
build/utils
20
build/version
21
libarchive/*.*
22
"
23
24
extract_source () {
25
git_archive
26
pushd "${extractdir}/${name}-reduced"
27
fromdos build/cmake/Find*.cmake
28
echo "* -whitespace" > .gitattributes
29
echo "" >> libarchive/archive_read_open_file.c
30
popd
31
}
32
33
. "${BASH_SOURCE%/*}/update-third-party.bash"
34
35