diff options
author | Nathan Scott <nathans@sgi.com> | 2003-02-06 22:31:59 +0000 |
---|---|---|
committer | Nathan Scott <nathans@sgi.com> | 2003-02-06 22:31:59 +0000 |
commit | 5bd32b7d41e51b42e190024f3ae9f28702a4e0bb (patch) | |
tree | f8015f226ddc58d15f08394e136512c52e2633c1 /include | |
parent | bf5e2ad9ea054c6726503884afaf45b4190045b6 (diff) | |
download | attr-5bd32b7d41e51b42e190024f3ae9f28702a4e0bb.tar.gz |
Push Steves INSTALL_LINGUAS shell macro fix to other buildmacros files, and
make a similar fixup for the INSTALL_MAN macro.
Diffstat (limited to 'include')
-rw-r--r-- | include/buildmacros | 12 |
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 |