summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.in10
-rw-r--r--locale/en_US.sh (renamed from locale/en_US/opkhelper.sh)0
-rw-r--r--locale/local.mk2
3 files changed, 7 insertions, 5 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:
diff --git a/locale/en_US/opkhelper.sh b/locale/en_US.sh
index 9a791f2..9a791f2 100644
--- a/locale/en_US/opkhelper.sh
+++ b/locale/en_US.sh
diff --git a/locale/local.mk b/locale/local.mk
index 888b71b..eeddd03 100644
--- a/locale/local.mk
+++ b/locale/local.mk
@@ -17,4 +17,4 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
locale_srcs = \
- locale/en_US/opkhelper.sh
+ locale/en_US.sh