aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2003-02-06 22:31:59 +0000
committerNathan Scott <nathans@sgi.com>2003-02-06 22:31:59 +0000
commit0c20b7eb33569f74a348d2969a49efecf71f2f68 (patch)
treeb39b523ebe13464a51ef2ab7f9fc59ed9a2b41f4
parentfffeaaf77fac9ba7497fe91b009a143f6fdd1a13 (diff)
downloaddmapi-dev-0c20b7eb33569f74a348d2969a49efecf71f2f68.tar.gz
Push Steves INSTALL_LINGUAS shell macro fix to other buildmacros files, and
make a similar fixup for the INSTALL_MAN macro.
-rw-r--r--include/buildmacros12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/buildmacros b/include/buildmacros
index b9210af..f911798 100644
--- a/include/buildmacros
+++ b/include/buildmacros
@@ -116,7 +116,7 @@ INSTALL_LTLIB_STATIC = \
../$(INSTALL) -m 644 -T old_lib $(LIBNAME).lai $(PKG_DEVLIB_DIR)
INSTALL_MAN = \
- @for d in $(MAN_PAGES); do \
+ @for d in $(MAN_PAGES) ""; do \
first=true; \
for m in `$(AWK) \
'/^\.S[h|H] NAME/ {ok=1; next} ok {print; exit}' $$d \
@@ -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