forked from secretflow/heu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat]: update yacl for cmake project
- Loading branch information
dterazhao
committed
Dec 22, 2023
1 parent
a964f33
commit 6ab0cc5
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
CD=$(cd "$(dirname "$0")" || exit && pwd) | ||
cd "$CD" || exit | ||
|
||
pkg=heu | ||
mkdir -p tmp/$pkg | ||
cp -R include third_party $pkg CMakeLists.txt tmp/$pkg/ | ||
# shellcheck disable=SC2164 | ||
pushd tmp | ||
rm -rf $pkg/third_party/{include,lib,bazel_cpp,bazel_rust} | ||
if [[ "$OSTYPE" == "darwin"* ]]; then | ||
gtar cvf $pkg.tar.gz $pkg | ||
else | ||
tar cvf $pkg.tar.gz $pkg | ||
fi | ||
rm -f ../$pkg.tar.gz && mv $pkg.tar.gz .. | ||
# shellcheck disable=SC2164 | ||
popd | ||
rm -rf tmp |
Binary file not shown.