summaryrefslogtreecommitdiffstats
path: root/Utilities/Scripts/update-liblzma.bash
blob: e2822f87da58cc6f81672f6c8fa279017c0bca2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/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="https://git.tukaani.org/xz.git"
readonly tag="v5.0.8"
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
    rm liblzma/Makefile.*
    rm liblzma/*/Makefile.*
    popd
}

. "${BASH_SOURCE%/*}/update-third-party.bash"