Skip to content

Commit

Permalink
Fix detection on Darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
norbusan committed Sep 17, 2024
1 parent 0802b4c commit ae2014f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions make-release-tarballs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ shift
default_components="bin share"

TAR=tar
OS=Linux
if [ `uname` = 'Darwin' ] ; then
TAR=gtar
OS=Darwin
fi

if [ x$vminor = x ] ; then
Expand Down Expand Up @@ -79,9 +81,9 @@ for i in $* ; do
exit 1
fi
case `file $dumpfile` in
*arm64*) arch=arm64 ; os=Darwin ;; # mind the order, Arm64 file give ...64-bit executable arm64
*32-bit*) arch=x86 ; os=Linux ;;
*64-bit*) arch=x64 ; os=Linux ;;
*arm64*) arch=arm64 ;; # mind the order, Arm64 file give ...64-bit executable arm64
*32-bit*) arch=x86 ;;
*64-bit*) arch=x64 ;;
*) echo "Cannot determine arch of CafeOBJ dump!" >&2 ; exit 1 ;;
esac
#
Expand All @@ -91,7 +93,7 @@ for i in $* ; do
mv bin/cafeobj.new bin/cafeobj
chmod ugo+x bin/cafeobj
echo "Building $sname standalone for $arch`uname` ..."
$TAR --numeric-owner --owner=0 --group=0 -cvzf ../cafeobj-$version$vminor-${sname}-${arch}${os}.tar.gz \
$TAR --numeric-owner --owner=0 --group=0 -cvzf ../cafeobj-$version$vminor-${sname}-${arch}${OS}.tar.gz \
$default_components $distdir
done

Expand Down

0 comments on commit ae2014f

Please sign in to comment.