Bug 309210 - xpis not packaged by default (like XForms) on linux/mac don't get stripped. r=bsmedberg

This commit is contained in:
doronr%us.ibm.com 2006-01-03 19:08:27 +00:00
Родитель b61f65e98e
Коммит cd1088a0ff
1 изменённых файлов: 27 добавлений и 0 удалений

Просмотреть файл

@ -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