mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-09 01:01:12 +00:00
rapidhash: Add import script to get rapidhash v3
This commit is contained in:
28
Utilities/Scripts/update-rapidhash.bash
Executable file
28
Utilities/Scripts/update-rapidhash.bash
Executable file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
set -x
|
||||
shopt -s dotglob
|
||||
|
||||
readonly name="rapidhash"
|
||||
readonly ownership="rapidhash upstream <kwrobot@kitware.com>"
|
||||
readonly subtree="Utilities/cmrapidhash"
|
||||
readonly repo="https://github.com/Nicoshev/rapidhash.git"
|
||||
readonly tag="rapidhash_v3"
|
||||
readonly shortlog=false
|
||||
readonly exact_tree_match=false
|
||||
readonly paths="
|
||||
LICENSE
|
||||
rapidhash.h
|
||||
"
|
||||
|
||||
extract_source () {
|
||||
git_archive
|
||||
pushd "${extractdir}/${name}-reduced"
|
||||
echo "* -whitespace" > .gitattributes
|
||||
fromdos rapidhash.h
|
||||
chmod a-x rapidhash.h
|
||||
popd
|
||||
}
|
||||
|
||||
. "${BASH_SOURCE%/*}/update-third-party.bash"
|
||||
Reference in New Issue
Block a user