https://github.com/Kitware/CMake
Raw File
Tip revision: a15cc7706da8f4a1833539be3f37fbc63ee20e36 authored by Brad King on 08 February 2022, 15:43:14 UTC
CMake 3.23.0-rc1
Tip revision: a15cc77
update-zstd.bash
#!/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.5.0"
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/*.h
"

extract_source () {
    git_archive
    pushd "${extractdir}/${name}-reduced"
    echo "* -whitespace" > .gitattributes
    popd
}

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