summaryrefslogtreecommitdiff
path: root/po/Makefile.in
diff options
context:
space:
mode:
authorAurelien Jarno <aurel32@debian.org>2005-02-03 16:24:20 +0100
committerMattia Rizzolo <mattia@mapreri.org>2014-10-03 14:05:06 +0000
commit825ef604db05e42ea267a86187bf62d54670c98c (patch)
treec41b8addd68e573fcf6ef599ec777e251a130b8e /po/Makefile.in
parentac8459519a9ef2a1ee635509b52a653da1bfe9d5 (diff)
parent817e6294b42b3e4435f1b99728afc1dca84a6445 (diff)
Imported Debian patch 0.97-3debian/0.97-3
Diffstat (limited to 'po/Makefile.in')
-rw-r--r--po/Makefile.in42
1 files changed, 32 insertions, 10 deletions
diff --git a/po/Makefile.in b/po/Makefile.in
index ff8ca90..d3c3932 100644
--- a/po/Makefile.in
+++ b/po/Makefile.in
@@ -31,10 +31,10 @@ MKINSTALLDIRS = $(top_srcdir)/@MKINSTALLDIRS@
CC = @CC@
GENCAT = @GENCAT@
-GMSGFMT = PATH=../src:$$PATH @GMSGFMT@
+GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
-XGETTEXT = PATH=../src:$$PATH @XGETTEXT@
-MSGMERGE = PATH=../src:$$PATH msgmerge
+XGETTEXT = @XGETTEXT@
+MSGMERGE = msgmerge
DEFS = @DEFS@
CFLAGS = @CFLAGS@
@@ -63,25 +63,37 @@ INSTOBJEXT = @INSTOBJEXT@
$(COMPILE) $<
.po.pox:
- $(MAKE) $(PACKAGE).pot
- $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox
+ if test "${MSGMERGE}" != "no"; then \
+ $(MAKE) $(PACKAGE).pot; \
+ $(MSGMERGE) $< $(srcdir)/$(PACKAGE).pot -o $*.pox; \
+ fi
.po.mo:
- $(MSGFMT) -o $@ $<
+ @if test "${MSGFMT}" != "no"; then \
+ echo "creating $@" ; \
+ $(MSGFMT) -o $@ $< ; \
+ fi
.po.gmo:
- file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
- && rm -f $$file && $(GMSGFMT) -o $$file $<
+ @if test "${GMSGFMT}" != "no"; then \
+ echo "creating $@" ; \
+ file=$(srcdir)/`echo $* | sed 's,.*/,,'`.gmo \
+ && rm -f $$file && $(GMSGFMT) -o $$file $< ; \
+ fi
.po.cat:
- sed -f ../intl/po2msg.sed < $< > $*.msg \
- && rm -f $@ && $(GENCAT) $@ $*.msg
+ if test "${GENCAT}" != "no"; then \
+ echo "creating $@" ; \
+ sed -f ../intl/po2msg.sed < $< > $*.msg \
+ && rm -f $@ && $(GENCAT) $@ $*.msg; \
+ fi
all: all-@USE_NLS@
all-yes: $(CATALOGS)
all-no:
+ @echo "*** Nationalziation is disabled! ***"
$(srcdir)/$(PACKAGE).pot: $(srcdir)/xsane-pot.sed $(srcdir)/sane-text.h $(POTFILES)
cat $(POTFILES) | \
@@ -201,6 +213,16 @@ update-po: Makefile
fi; \
done
+utf8:
+ for LNG in *.po ; do \
+ FORMAT=`grep charset $$LNG | sed -e '{ s/Content-Type: text\/plain; charset=//g ; s/\\\n// ; s/\"//g ; }'` ;\
+ echo recoding $$LNG\($$FORMAT\) to UTF-8/$$LNG\(UTF-8\);\
+ COMMAND="s/"$$FORMAT"/UTF-8/g" ;\
+ cat $$LNG | sed -e $$COMMAND >UTF-8/$$LNG ;\
+ recode $$FORMAT..UTF-8 UTF-8/$$LNG ;\
+ done
+
+
Makefile: Makefile.in ../config.status
cd .. \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= \