Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 35179e8

Browse files
committed
Avoid shell syntax error if list of languages is empty.
1 parent b1baceb commit 35179e8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nls-global.mk

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.6 2002/08/29 22:13:01 petere Exp $
1+
# $Header: /cvsroot/pgsql/src/nls-global.mk,v 1.7 2002/09/02 22:19:42 petere Exp $
22

33
# Common rules for Native Language Support (NLS)
44
#
@@ -65,9 +65,11 @@ endif # not XGETTEXT
6565

6666

6767
install-po: all-po installdirs-po
68+
ifneq (,$(LANGUAGES))
6869
for lang in $(LANGUAGES); do \
6970
$(INSTALL_DATA) po/$$lang.mo $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(CATALOG_NAME).mo || exit 1; \
7071
done
72+
endif
7173

7274
installdirs-po:
7375
$(mkinstalldirs) $(foreach lang, $(LANGUAGES), $(DESTDIR)$(localedir)/$(lang)/LC_MESSAGES)

0 commit comments

Comments
 (0)