Update make_tarball.sh to work on Darwin

This commit is contained in:
ridiculousfish 2013-10-05 01:56:25 -07:00
parent ad5ae9ba3b
commit 09ff1e7af0

View File

@ -33,14 +33,16 @@ rm -f "$path" "$path".gz
git archive --format=tar --prefix="$prefix"/ master > "$path" git archive --format=tar --prefix="$prefix"/ master > "$path"
# tarball out the documentation, generate a configure script and version file # tarball out the documentation, generate a configure script and version file
autoreconf # Don't use autoreconf since it invokes commands that may not be installed, like aclocal
# Don't run autoheader since configure.ac runs it. autoconf is enough.
autoconf
./configure --with-doxygen ./configure --with-doxygen
make user_doc share/man make user_doc share/man
echo $VERSION > version echo $VERSION > version
cd /tmp cd /tmp
rm -f "$prefix" rm -f "$prefix"
ln -s "$wd" "$prefix" ln -s "$wd" "$prefix"
TAR_APPEND="gnutar --append --file=$path --mtime=now --owner=root --group=root --mode=g+w,a+rX" TAR_APPEND="gnutar --append --file=$path --mtime=now --owner=0 --group=0 --mode=g+w,a+rX"
$TAR_APPEND --no-recursion "$prefix"/user_doc $TAR_APPEND --no-recursion "$prefix"/user_doc
$TAR_APPEND "$prefix"/user_doc/html "$prefix"/share/man $TAR_APPEND "$prefix"/user_doc/html "$prefix"/share/man
$TAR_APPEND "$prefix"/version $TAR_APPEND "$prefix"/version