summaryrefslogtreecommitdiff
path: root/Utilities/Scripts/update-liblzma.bash
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-06-28 23:10:11 +0200
committerBrad King <brad.king@kitware.com>2016-06-29 10:01:33 -0400
commitec8f744a11dfcab9560387168cab76260aa0b777 (patch)
tree22f575e4cfd33ab3917e29cb3cf6c889bdeff26e /Utilities/Scripts/update-liblzma.bash
parent7808ba0852708963a6c37c8027b3382c2157422e (diff)
downloadcmake-ec8f744a11dfcab9560387168cab76260aa0b777.tar.gz
Add script to update liblzma from upstream
Diffstat (limited to 'Utilities/Scripts/update-liblzma.bash')
-rwxr-xr-xUtilities/Scripts/update-liblzma.bash30
1 files changed, 30 insertions, 0 deletions
diff --git a/Utilities/Scripts/update-liblzma.bash b/Utilities/Scripts/update-liblzma.bash
new file mode 100755
index 0000000000..31de671446
--- /dev/null
+++ b/Utilities/Scripts/update-liblzma.bash
@@ -0,0 +1,30 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+shopt -s dotglob
+
+readonly name="liblzma"
+readonly ownership="liblzma upstream <xz-devel@tukaani.org>"
+readonly subtree="Utilities/cmliblzma"
+readonly repo="http://git.tukaani.org/xz.git"
+readonly tag="v5.0.5"
+readonly shortlog=false
+readonly paths="
+ COPYING
+ src/common/common_w32res.rc
+ src/common/sysdefs.h
+ src/common/tuklib_integer.h
+ src/liblzma/
+"
+
+extract_source () {
+ git_archive
+ pushd "${extractdir}/${name}-reduced"
+ mv src/common .
+ mv src/liblzma .
+ rmdir src
+ popd
+}
+
+. "${BASH_SOURCE%/*}/update-third-party.bash"