andrejv/wxmaxima — Issue #202: locales/Makefile.am patch
Author: takeutch-kemeco
Created: 2012-01-18 20:26:17+00:00
State: open

This patch fixes a failed installation of the locale file.
"locales / Makefile.am" just fix the typo.

Tested the patch "git commit" has

commit 33d86f9cfb031e318885a9fae8f2105e2663e94f
Author: Andrej Vodopivec
Date: Tue Jan 17 10:18:12 2012 +0100

The patch below.

diff --git a/locales/Makefile.am b/locales/Makefile.am
index 1f93dce..75ecb43 100644
--- a/locales/Makefile.am
+++ b/locales/Makefile.am
@@ -12,13 +12,13 @@ install-data-local: @CATALOGS_TO_INSTALL@
install-wxmaxima-catalogs:
for i in $(WXMAXIMA_LINGUAS) ; do \
$(mkinstalldirs) $(DESTDIR)$(localedir)/$$i/LC_MESSAGES ; \
-	$(INSTALL_DATA) $(srcdir)/$$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/wxMaxima.mo ; \
+	$(INSTALL_DATA) $(srcdir)/transcoded/$$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/wxMaxima.mo ; \
done

install-wxstd-catalogs:
for i in $(WXWIN_LINGUAS) ; do \
$(mkinstalldirs) $(DESTDIR)$(localedir)/$$i/LC_MESSAGES ; \
-	$(INSTALL_DATA) $(srcdir)/wxwin/$$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/wxMaxima-wxstd.mo ; \
+	$(INSTALL_DATA) $(srcdir)/transcoded/wxwin/$$i.mo $(DESTDIR)$(localedir)/$$i/LC_MESSAGES/wxMaxima-wxstd.mo ; \
done

@@ -39,11 +39,11 @@ XARGS=xargs
XGETTEXT_ARGS=-C -k_ -s -j

# implicit rules
-%.mo: %.po
+.mo: .po
$(MSGFMT) -o $@ $<

# a PO file must be updated to include new translations
-%.po: $(srcdir)/wxMaxima.pot
+.po: $(srcdir)/wxMaxima.pot
touch $@
$(MSGMERGE) $@ $(srcdir)/wxMaxima.pot > $@.new && mv $@.new $@;

@@ -90,7 +90,7 @@ transcoded:
$(MSGFMT) transcoded/fr.po -o transcoded/fr.mo
cat it.po | sed -e "s/UTF-8/ISO-8859-1/" | iconv -f utf-8 -t iso8859-1 > transcoded/it.po
$(MSGFMT) transcoded/it.po -o transcoded/it.mo
-	cat pt_BR.po | sed -e "s/UTF-8/ISO-8859-1/" | iconv -f utf-8 -t iso8859-1 > transcoded/pt_br.po
+	cat pt_BR.po | sed -e "s/UTF-8/ISO-8859-1/" | iconv -f utf-8 -t iso8859-1 > transcoded/pt_BR.po
$(MSGFMT) transcoded/pt_BR.po -o transcoded/pt_BR.mo
cp ru.po transcoded
$(MSGFMT) transcoded/ru.po -o transcoded/ru.mo