summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-02 14:17:08 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-02 14:25:15 (GMT)
commit91e6da10eb8b9bfd046472cd06382b13f7b47fe3 (patch)
tree37119c16a43a9c9929d4bc486478a824a3967a1c /Utilities
parent24b2a36778fd65f7066a964cf9f5d249f8e0f101 (diff)
downloadCMake-91e6da10eb8b9bfd046472cd06382b13f7b47fe3.zip
CMake-91e6da10eb8b9bfd046472cd06382b13f7b47fe3.tar.gz
CMake-91e6da10eb8b9bfd046472cd06382b13f7b47fe3.tar.bz2
Add script to update LibArchive from upstream
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Scripts/update-libarchive.bash31
1 files changed, 31 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-libarchive.bash b/Utilities/Scripts/update-libarchive.bash
new file mode 100755
index 0000000..3b42269
--- /dev/null
+++ b/Utilities/Scripts/update-libarchive.bash
@@ -0,0 +1,31 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+shopt -s dotglob
+
+readonly name="LibArchive"
+readonly ownership="LibArchive Upstream <libarchive-discuss@googlegroups.com>"
+readonly subtree="Utilities/cmlibarchive"
+readonly repo="https://github.com/libarchive/libarchive.git"
+readonly tag="master"
+readonly shortlog=false
+readonly paths="
+ CMakeLists.txt
+ COPYING
+ CTestConfig.cmake
+ build/cmake
+ build/pkgconfig
+ build/utils
+ build/version
+ libarchive/*.*
+"
+
+extract_source () {
+ git_archive
+ pushd "${extractdir}/${name}-reduced"
+ fromdos build/cmake/Find*.cmake
+ popd
+}
+
+. "${BASH_SOURCE%/*}/update-third-party.bash"