summaryrefslogtreecommitdiffstats
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
parentc4692a0859da5b00a633de3e669a813ea584da6a (diff)
Restructure locale/.
-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