From b0da09a43436efa9558aaf2901c6c2a4892c717b Mon Sep 17 00:00:00 2001 From: bocchino Date: Sat, 29 Oct 2022 20:31:11 -0700 Subject: [PATCH] Revise build script --- compiler/release | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/compiler/release b/compiler/release index a7c63d59a..9e945d825 100755 --- a/compiler/release +++ b/compiler/release @@ -52,6 +52,13 @@ native_bin="native-fpp-`uname`-`uname -m`" native_image="$GRAALVM_JAVA_HOME/bin/native-image" meta_inf_dir="lib/src/main/resources/META-INF/native-image" release_tgz="$native_bin.tar.gz" +# Use gtar if it's available +# The default tar has issues on Mac OS on GitHub +tar=`which gtar` +if test -z "$tar" +then + tar=tar +fi # Make directories mkdir -p "$meta_inf_dir" @@ -118,12 +125,12 @@ fi print_phase "Constructing the release archive $release_tgz" # Create the tar ball -evalp tar -czf "$release_tgz" "$native_bin" +evalp $tar -czf "$release_tgz" "$native_bin" sync; sync; sync; # Verify the tar ball evalp mkdir -p check-tar -(cd check-tar; evalp tar -xvf "../$release_tgz") +(cd check-tar; evalp $tar -xvf "../$release_tgz") sync; sync; sync; for file in `ls "$native_bin"` do