From 4530d7c44c15e2d2c3e9c1a45c073508c48b004c Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Sun, 23 Aug 2009 00:25:06 +0200 Subject: - Guess common license file names if MOZ_XPI_DOCUMENTED_LICENSE_FILES is not set. - update src/xpi.mk --- src/xpi.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/xpi.mk b/src/xpi.mk index f065915..842d527 100644 --- a/src/xpi.mk +++ b/src/xpi.mk @@ -56,7 +56,8 @@ # defines extra license files which need to be excluded during # the installation of the XPI file to the packaging tree. When # using parameter, be sure that you documented _all_ excluded -# license files in debian/copyright appropriately +# license files in debian/copyright appropriately. If not defined +# the common license file names are tried. # # Deprecated variables: # @@ -147,6 +148,8 @@ MOZ_EXTENSION_PKG ?= $(strip $(shell grep ^Package: debian/control | head -n 1 | MOZ_XPI_BUILD_COMMAND ?= med-xpi-pack $(CURDIR) $(MOZ_EXTENSION_PKG).xpi; +MOZ_XPI_DOCUMENTED_LICENSE_FILES ?= $(strip $(shell find * -iname copying -o -iname licen[cs]e -o -iname licen[cs]e.txt)) + XPI_DEPENDS = $(sort $(foreach id,$(call XPI_TARGET_EMIDs,$(TEMPDIR)), \ $(foreach package,$(packages_$(id)),$(call CHECK_VERSION,$(id),$(package))))) -- cgit v1.2.3