summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Drung <bdrung@ubuntu.com>2009-08-23 00:25:06 +0200
committerBenjamin Drung <bdrung@ubuntu.com>2009-08-23 00:25:06 +0200
commit4530d7c44c15e2d2c3e9c1a45c073508c48b004c (patch)
tree5522713838becd1ddb7ab401f5f9e629f2322633 /src
parent1b90b2ea10d7a0bed4a79faae0647be818f4e891 (diff)
- Guess common license file names if MOZ_XPI_DOCUMENTED_LICENSE_FILES is
not set. - update src/xpi.mk
Diffstat (limited to 'src')
-rw-r--r--src/xpi.mk5
1 files changed, 4 insertions, 1 deletions
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)))))