mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Avoid shell syntax error if list of languages is empty.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.6 2002/08/29 22:13:01 petere Exp $
|
# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.7 2002/09/02 22:19:42 petere Exp $
|
||||||
|
|
||||||
# Common rules for Native Language Support (NLS)
|
# Common rules for Native Language Support (NLS)
|
||||||
#
|
#
|
||||||
@ -65,9 +65,11 @@ endif # not XGETTEXT
|
|||||||
|
|
||||||
|
|
||||||
install-po: all-po installdirs-po
|
install-po: all-po installdirs-po
|
||||||
|
ifneq (,$(LANGUAGES))
|
||||||
for lang in $(LANGUAGES); do \
|
for lang in $(LANGUAGES); do \
|
||||||
$(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
|
$(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
|
||||||
done
|
done
|
||||||
|
endif
|
||||||
|
|
||||||
installdirs-po:
|
installdirs-po:
|
||||||
$(mkinstalldirs) $(foreach lang, $(LANGUAGES), $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES)
|
$(mkinstalldirs) $(foreach lang, $(LANGUAGES), $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES)
|
||||||
|
Reference in New Issue
Block a user