summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2014-02-25 18:09:28 (EST)
committer P. J. McDermott <pjm@nac.net>2014-02-25 18:09:28 (EST)
commit59827b32ca507d7f2dd004b09bf37728db969de3 (patch)
tree8c3e7a7245372da9132324b2a72d81e12f7aff47 /Makefile.in
parentc4692a0859da5b00a633de3e669a813ea584da6a (diff)
Restructure locale/.
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: