]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
fix rpm build for more versions of bash
authorSteve Lord <lord@sgi.com>
Thu, 6 Feb 2003 15:40:16 +0000 (15:40 +0000)
committerSteve Lord <lord@sgi.com>
Thu, 6 Feb 2003 15:40:16 +0000 (15:40 +0000)
fix internationalization part of build macros to work with more
versions of the shell.

include/buildmacros

index b9210af375e4bce96cce89961ea34571b46066f0..19be5892c98b51e10bd7e9c3c8fe38381ea57eeb 100644 (file)
@@ -143,10 +143,12 @@ INSTALL_MAN = \
 
 ifeq ($(ENABLE_GETTEXT),yes)
 INSTALL_LINGUAS = \
-       @for l in $(LINGUAS); do \
-               ldir=$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \
-               $(INSTALL) -m 755 -d $$ldir; \
-               $(INSTALL) -m 644 $$l.mo $$ldir/$(PKG_NAME).mo; \
+       @for l in $(LINGUAS) ""; do \
+               if test -f "$$l.mo" ; then \
+                       ldir=$(PKG_LOCALE_DIR)/$$l/LC_MESSAGES; \
+                       $(INSTALL) -m 755 -d $$ldir; \
+                       $(INSTALL) -m 644 $$l.mo $$ldir/$(PKG_NAME).mo; \
+               fi; \
        done
 endif