зеркало из https://github.com/mozilla/pjs.git
Fix for BeOS problem of stripping away needed file attributes.
Thanks to Wade Majors <guru@startrek.com> for the patch. Bug #66180. r=cls
This commit is contained in:
Родитель
784dcba015
Коммит
5152997ed7
|
@ -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
|
||||
|
|
|
@ -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 > $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче