From e34e4d1a888d9e586c81b45d9f3769940c648013 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 20 Jul 2026 11:37:51 -0400 Subject: [PATCH] rapidhash: Add import script to get rapidhash v3 --- Utilities/Scripts/update-rapidhash.bash | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 Utilities/Scripts/update-rapidhash.bash diff --git a/Utilities/Scripts/update-rapidhash.bash b/Utilities/Scripts/update-rapidhash.bash new file mode 100755 index 0000000000..59a4a3a769 --- /dev/null +++ b/Utilities/Scripts/update-rapidhash.bash @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +set -e +set -x +shopt -s dotglob + +readonly name="rapidhash" +readonly ownership="rapidhash upstream " +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"