From: Steve Lord Date: Thu, 6 Feb 2003 15:40:16 +0000 (+0000) Subject: fix rpm build for more versions of bash X-Git-Tag: v2.4.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3e9ba9675d961c8793d56bf0535ea828a22e227;p=thirdparty%2Fxfsprogs-dev.git fix rpm build for more versions of bash fix internationalization part of build macros to work with more versions of the shell. --- diff --git a/include/buildmacros b/include/buildmacros index b9210af37..19be5892c 100644 --- a/include/buildmacros +++ b/include/buildmacros @@ -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