mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
bug 371201 - error on spaces in XPI_NAME and some other Makefile vars. r=bsmedberg
This commit is contained in:
parent
d7c63cf41c
commit
c66abaebd5
@ -62,6 +62,23 @@ include $(topsrcdir)/config/insure.mk
|
||||
endif
|
||||
endif
|
||||
|
||||
# Sanity check some variables
|
||||
CHECK_VARS := \
|
||||
XPI_NAME \
|
||||
LIBRARY_NAME \
|
||||
MODULE \
|
||||
DEPTH \
|
||||
SHORT_LIBNAME \
|
||||
XPI_PKGNAME \
|
||||
INSTALL_EXTENSION_ID \
|
||||
$(NULL)
|
||||
|
||||
# checks for internal spaces or trailing spaces in the variable
|
||||
# named by $x
|
||||
check-variable = $(if $(filter-out 0 1,$(words $($(x))z)),$(error Spaces are not allowed in $(x)))
|
||||
|
||||
$(foreach x,$(CHECK_VARS),$(check-variable))
|
||||
|
||||
# FINAL_TARGET specifies the location into which we copy end-user-shipped
|
||||
# build products (typelibs, components, chrome).
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user