summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/Makefile.in b/Makefile.in
index 2772850..1d57c5d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -82,6 +82,8 @@ distfiles = \
$(archtab_srcs) \
$(tests)
+textdomain = $$(printf '%s\n' '$(package_name)' | sed -e 's|-|_|g')
+
script = \
s&@@PACKAGE_NAME@@&$(package_name)&;\
s&@@PACKAGE_VERSION@@&$(package_version)&;\
@@ -171,9 +173,9 @@ install-locale:
@set -e; for f in $(locale); do \
printf ' INSTALL %s\n' "$${f}"; \
ff="$${f#*/}"; \
- dd="$(DESTDIR)/$(localedir)/$${ff%/?*}/LC_MESSAGES"; \
+ dd="$(DESTDIR)/$(localedir)/$${ff%.ms}/LC_MESSAGES"; \
mkdir -p "$${dd}"; \
- df="$${dd}/$${ff##*/}"; \
+ df="$${dd}/$(textdomain).ms"; \
cp "$${f}" "$${df}"; \
chmod 644 "$${df}"; \
done
@@ -212,8 +214,8 @@ uninstall-locale:
@set -e; for f in $(locale); do \
printf ' RM %s\n' "$${f}"; \
ff="$${f#*/}"; \
- dd="$(DESTDIR)/$(localedir)/$${ff%/?*}/LC_MESSAGES"; \
- df="$${dd}/$${ff##*/}"; \
+ dd="$(DESTDIR)/$(localedir)/$${ff%.ms}/LC_MESSAGES"; \
+ df="$${dd}/$(textdomain).ms)"; \
rm -f "$${df}"; \
done
uninstall-archtab: