This commit is contained in:
parent
aa2ff7b2f0
commit
2f3113f55d
11742 changed files with 1223940 additions and 0 deletions
35
unikernel/duniverse/dune_/vendor/update-ocaml-blake3-mini.sh
vendored
Executable file
35
unikernel/duniverse/dune_/vendor/update-ocaml-blake3-mini.sh
vendored
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#!/bin/sh
|
||||
|
||||
version=c6aa40e5f1973c2e6b736660ce2c8dcd3b3f9c9f
|
||||
|
||||
set -e -o pipefail
|
||||
|
||||
TMP="$(mktemp -d)"
|
||||
trap "rm -rf $TMP" EXIT
|
||||
|
||||
pkg=ocaml-blake3-mini
|
||||
|
||||
rm -rf $pkg
|
||||
mkdir -p $pkg/{vendor,src}
|
||||
|
||||
(
|
||||
cd $TMP
|
||||
git clone https://github.com/rgrinberg/$pkg.git
|
||||
cd $pkg
|
||||
git checkout $version
|
||||
)
|
||||
|
||||
src=$TMP/$pkg
|
||||
|
||||
(
|
||||
cp -v $src/src/*.{ml,mli,c} $pkg/
|
||||
cp -v $src/vendor/*.{ml,mli,c,h,S,asm} $pkg/
|
||||
rm $pkg/blake3_avx2.c
|
||||
rm $pkg/blake3_avx512.c
|
||||
rm $pkg/blake3_sse2.c
|
||||
rm $pkg/blake3_sse41.c
|
||||
) || true
|
||||
|
||||
git checkout $pkg/dune
|
||||
|
||||
git add -A .
|
||||
Loading…
Add table
Add a link
Reference in a new issue