mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -06:00
The KWSys `.gitattributes` file now defines custom attributes. Git does not support these in a subdirectory where we are about to place the content, so comment them out during import. This also ensures that the `our-c-style` attribute on KWSys sources does not activate the `format.clang-format` attribute on the third-party import branch.
24 lines
435 B
Bash
Executable File
24 lines
435 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -x
|
|
shopt -s dotglob
|
|
|
|
readonly name="KWSys"
|
|
readonly ownership="KWSys Upstream <kwrobot@kitware.com>"
|
|
readonly subtree="Source/kwsys"
|
|
readonly repo="https://gitlab.kitware.com/utils/kwsys.git"
|
|
readonly tag="master"
|
|
readonly shortlog=true
|
|
readonly paths="
|
|
"
|
|
|
|
extract_source () {
|
|
git_archive
|
|
disable_custom_gitattributes
|
|
}
|
|
|
|
export HOOKS_ALLOW_KWSYS=1
|
|
|
|
. "${BASH_SOURCE%/*}/update-third-party.bash"
|