This is an automated email from the ASF dual-hosted git repository.

zhouky pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new 1f95ccb5 [CELEBORN-193][FOLLOWUP] Reduce unnecessary binary files. 
(#1142)
1f95ccb5 is described below

commit 1f95ccb55a1f99bb7caeda00c31c400185df8752
Author: Ethan Feng <[email protected]>
AuthorDate: Thu Jan 5 15:04:44 2023 +0800

    [CELEBORN-193][FOLLOWUP] Reduce unnecessary binary files. (#1142)
---
 .gitattributes             | 1 +
 build/make-distribution.sh | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitattributes b/.gitattributes
index e1623b7a..b7898d9e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -23,6 +23,7 @@ LICENSE-binary export-ignore
 NOTICE-binary export-ignore
 assets/slides/* export-ignore
 assets/diagram/* export-ignore
+assets/img/* export-ignore
 *.bat text eol=crlf
 *.cmd text eol=crlf
 *.java text eol=lf
diff --git a/build/make-distribution.sh b/build/make-distribution.sh
index 998597b0..ce056447 100755
--- a/build/make-distribution.sh
+++ b/build/make-distribution.sh
@@ -256,5 +256,9 @@ TARDIR_NAME="apache-celeborn-$VERSION-$NAME"
 TARDIR="$PROJECT_DIR/$TARDIR_NAME"
 rm -rf "$TARDIR"
 cp -R "$DIST_DIR" "$TARDIR"
-tar czf "apache-celeborn-$VERSION-$NAME.tgz" -C "$PROJECT_DIR" "$TARDIR_NAME"
+TAR="tar"
+if [ "$(uname -s)" = "Darwin" ]; then
+  TAR="tar --no-mac-metadata --no-xattrs"
+fi
+$TAR -czf "apache-celeborn-$VERSION-$NAME.tgz" -C "$PROJECT_DIR" "$TARDIR_NAME"
 rm -rf "$TARDIR"

Reply via email to