Prefer gnu tar to others. b=260174 Patch from Marco Perez <bugmail@millibyte.net>. r=bsmedberg

This commit is contained in:
dbaron%dbaron.org 2006-03-27 17:52:05 +00:00
parent 77491bb14e
commit 15ae580678
3 changed files with 12 additions and 1 deletions

View File

@ -156,6 +156,8 @@ JAVA_INCLUDE_PATH=@JAVA_INCLUDE_PATH@
JAVAC=@JAVAC@
JAR=@JAR@
TAR=@TAR@
# The MOZ_UI_LOCALE var is used to build a particular locale. Do *not*
# use the var to change any binary files. Do *not* use this var unless you
# write rules for the "clean-locale" and "locale" targets.

View File

@ -5467,6 +5467,14 @@ if test -z "$MOZ_XPINSTALL"; then
fi
AC_SUBST(MOZ_INSTALLER)
AC_MSG_CHECKING([for tar archiver])
AC_CHECK_PROGS(TAR, gnutar gtar tar, "")
if test -z "$TAR"; then
AC_MSG_ERROR([no tar archiver found in \$PATH])
fi
AC_MSG_RESULT([$TAR])
AC_SUBST(TAR)
dnl ========================================================
dnl Updater
dnl ========================================================

View File

@ -74,7 +74,8 @@ PACKAGE = $(PKG_BASENAME)$(PKG_SUFFIX)
MAKE_PACKAGE = $(error What is a $(MOZ_PKG_FORMAT) package format?);
CREATE_FINAL_TAR = tar -c --owner=0 --group=0 --numeric-owner --mode="go-w" -f
CREATE_FINAL_TAR = $(TAR) -c --owner=0 --group=0 --numeric-owner \
--mode="go-w" -f
UNPACK_TAR = tar -x
ifeq ($(MOZ_PKG_FORMAT),TAR)