mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-02-23 19:39:53 +08:00
Avoid shell syntax error if list of languages is empty.
This commit is contained in:
parent
b1bacebea0
commit
35179e8e32
@ -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)
|
||||
#
|
||||
@ -65,9 +65,11 @@ endif # not XGETTEXT
|
||||
|
||||
|
||||
install-po: all-po installdirs-po
|
||||
ifneq (,$(LANGUAGES))
|
||||
for lang in $(LANGUAGES); do \
|
||||
$(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
|
||||
done
|
||||
endif
|
||||
|
||||
installdirs-po:
|
||||
$(mkinstalldirs) $(foreach lang, $(LANGUAGES), $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES)
|
||||
|
Loading…
Reference in New Issue
Block a user