1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-17 17:47:03 +00:00

Tweak dist-unix.sh for OS X

This commit is contained in:
James Hillyerd
2012-11-05 22:25:00 -08:00
parent e45a420dae
commit c167dca5e4

View File

@@ -10,6 +10,13 @@ label="$1"
# Bail on error
set -e
# For OS X
if [ -x /usr/bin/gnutar ]; then
tar=/usr/bin/gnutar
else
tar=tar
fi
# Work directory
tmpdir=/tmp/inbucket-dist.$$
mkdir -p $tmpdir
@@ -32,7 +39,7 @@ cp -r themes $distdir/themes
echo "Tarballing..."
tarball="$HOME/$distname.tbz2"
cd $tmpdir
tar --owner=root --group=root -cjvf $tarball $distname
$tar --owner=root --group=0 -cjvf $tarball $distname
echo "Cleaning up..."
if [ "$tmpdir" != "/" ]; then