From 59827b32ca507d7f2dd004b09bf37728db969de3 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 25 Feb 2014 18:09:28 -0500 Subject: Restructure locale/. --- 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 . locale_srcs = \ - locale/en_US/opkhelper.sh + locale/en_US.sh -- cgit v0.9.1