Fix for BeOS problem of stripping away needed file attributes.

Thanks to Wade Majors <guru@startrek.com> for the patch.
Bug #66180. r=cls


git-svn-id: svn://10.0.0.236/trunk@85364 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cls%seawood.org 2001-01-23 15:34:56 +00:00
parent ebf1139ffa
commit 6264aad9d1
2 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@
# Reserved.
#
## $Id: mozilla,v 1.9 2000-10-25 20:32:36 cls%seawood.org Exp $
## $Id: mozilla,v 1.10 2001-01-23 15:34:56 cls%seawood.org Exp $
##
## Usage:
##
@ -38,6 +38,10 @@ moreargs=""
debugging=0
MOZILLA_BIN="mozilla-bin"
if [ "$OSTYPE" = "beos" ]; then
mimeset -F $MOZILLA_BIN
fi
while [ $# -gt 0 ]
do
case "$1" in

View File

@ -82,6 +82,7 @@ STRIP_FLAGS = -f
endif
ifeq ($(OS_ARCH),BeOS)
STRIP_FLAGS = -g
PLATFORM_EXCLUDE_LIST = ! -name "*.stub" ! -name "mozilla-bin"
endif
all export libs install:: $(TARGETS)
@ -96,12 +97,7 @@ endif
# NOTE: this must be a cp now that dist links into the tree so that we
# do not strip the binaries actually in the tree.
@echo "Creating package directory..."
# Only zip/unzip preserve BeOS' special file attributes
ifeq ($(OS_ARCH),BeOS)
@copyattr -v -d -r $(DIST)/bin $(DIST)/package
else
@cp -rp ${DIST}/bin $(DIST)/package
endif
@echo "Stripping package directory..."
@cd $(DIST)/package; find . ! -type d \
! -name "*.js" \
@ -124,7 +120,7 @@ endif
! -name "*.tbl" \
! -name "*.src" \
! -name "*.reg" \
! -name "*.stub" \
$(PLATFORM_EXCLUDE_LIST) \
-exec $(STRIP) $(STRIP_FLAGS) {} >/dev/null 2>&1 \;
ifeq ($(MOZ_PKG_FORMAT),TGZ)
cd $(DIST); tar -cvhf - package | gzip -vf9 > $@