bug 371201 - error on spaces in XPI_NAME and some other Makefile vars. r=bsmedberg

This commit is contained in:
ted.mielczarek%gmail.com 2007-03-26 18:15:02 +00:00
Родитель b1b54b7a33
Коммит 3fc9e6e60d
1 изменённых файлов: 17 добавлений и 0 удалений

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

@ -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).
#