зеркало из https://github.com/mozilla/gecko-dev.git
Bug 309210 - xpis not packaged by default (like XForms) on linux/mac don't get stripped. r=bsmedberg
This commit is contained in:
Родитель
b61f65e98e
Коммит
cd1088a0ff
|
@ -1539,6 +1539,33 @@ endif
|
|||
|
||||
ifneq ($(XPI_PKGNAME),)
|
||||
libs realchrome::
|
||||
ifndef PKG_SKIP_STRIP
|
||||
@echo "Stripping $(XPI_PKGNAME) package directory..."
|
||||
@echo $(FINAL_TARGET)
|
||||
@cd $(FINAL_TARGET) && find . ! -type d \
|
||||
! -name "*.js" \
|
||||
! -name "*.xpt" \
|
||||
! -name "*.gif" \
|
||||
! -name "*.jpg" \
|
||||
! -name "*.png" \
|
||||
! -name "*.xpm" \
|
||||
! -name "*.txt" \
|
||||
! -name "*.rdf" \
|
||||
! -name "*.sh" \
|
||||
! -name "*.properties" \
|
||||
! -name "*.dtd" \
|
||||
! -name "*.html" \
|
||||
! -name "*.xul" \
|
||||
! -name "*.css" \
|
||||
! -name "*.xml" \
|
||||
! -name "*.jar" \
|
||||
! -name "*.dat" \
|
||||
! -name "*.tbl" \
|
||||
! -name "*.src" \
|
||||
! -name "*.reg" \
|
||||
$(PLATFORM_EXCLUDE_LIST) \
|
||||
-exec $(STRIP) $(STRIP_FLAGS) {} >/dev/null 2>&1 \;
|
||||
endif
|
||||
@echo "Packaging $(XPI_PKGNAME).xpi..."
|
||||
cd $(FINAL_TARGET) && $(ZIP) -qr ../$(XPI_PKGNAME).xpi *
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче