summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-12 17:18:42 (GMT)
committerBrad King <brad.king@kitware.com>2019-03-13 14:46:14 (GMT)
commit9337cbfccab0b7a0984b837d71ff59543acb574d (patch)
tree694c589189487659f78afb3d9d98a1df423e665e /Utilities
parent57d178bbca7757792653f1a658423826c52b5730 (diff)
downloadCMake-9337cbfccab0b7a0984b837d71ff59543acb574d.zip
CMake-9337cbfccab0b7a0984b837d71ff59543acb574d.tar.gz
CMake-9337cbfccab0b7a0984b837d71ff59543acb574d.tar.bz2
zstd: add script to import zstd from upstream
Diffstat (limited to 'Utilities')
-rwxr-xr-xUtilities/Scripts/update-zstd.bash36
1 files changed, 36 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-zstd.bash b/Utilities/Scripts/update-zstd.bash
new file mode 100755
index 0000000..ce2c66b
--- /dev/null
+++ b/Utilities/Scripts/update-zstd.bash
@@ -0,0 +1,36 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+shopt -s dotglob
+
+readonly name="zstd"
+readonly ownership="zstd upstream <kwrobot@kitware.com>"
+readonly subtree="Utilities/cmzstd"
+readonly repo="https://github.com/facebook/zstd.git"
+readonly tag="v1.3.8"
+readonly shortlog=false
+readonly paths="
+ LICENSE
+ README.md
+ lib/common/*.c
+ lib/common/*.h
+ lib/compress/*.c
+ lib/compress/*.h
+ lib/decompress/*.c
+ lib/decompress/*.h
+ lib/deprecated/*.c
+ lib/deprecated/*.h
+ lib/dictBuilder/*.c
+ lib/dictBuilder/*.h
+ lib/zstd.h
+"
+
+extract_source () {
+ git_archive
+ pushd "${extractdir}/${name}-reduced"
+ echo "* -whitespace" > .gitattributes
+ popd
+}
+
+. "${BASH_SOURCE%/*}/update-third-party.bash"