~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/examples/po/Makefile.am

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
## Makefile for the gettext-tools/examples/po subdirectory of GNU gettext
2
 
## Copyright (C) 1995-1998, 2000-2007 Free Software Foundation, Inc.
 
2
## Copyright (C) 1995-1998, 2000-2007, 2009 Free Software Foundation, Inc.
3
3
##
4
4
## This program is free software: you can redistribute it and/or modify
5
5
## it under the terms of the GNU General Public License as published by
122
122
# message catalogs shall be used.  It is usually empty.
123
123
EXTRA_LOCALE_CATEGORIES =
124
124
 
 
125
# These options get passed to msgmerge.
 
126
# Useful options are in particular:
 
127
#   --previous            to keep previous msgids of translated messages,
 
128
#   --quiet               to reduce the verbosity.
 
129
MSGMERGE_OPTIONS = --quiet
 
130
 
125
131
MSGMERGE = msgmerge
126
132
MSGMERGE_UPDATE = @MSGMERGE@ --update
127
133
MSGINIT = msginit
303
309
$(POFILES): $(srcdir)/$(DOMAIN).pot
304
310
        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \
305
311
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
306
 
        echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \
307
 
        cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot
 
312
        echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot"; \
 
313
        cd $(srcdir) && $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot
308
314
 
309
315
 
310
316
html ID:
344
350
        tmpdir=`pwd`; \
345
351
        echo "$$lang:"; \
346
352
        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \
347
 
        echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
 
353
        echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \
348
354
        cd $(srcdir); \
349
 
        if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
 
355
        if $(MSGMERGE) $(MSGMERGE_OPTIONS) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \
350
356
          if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \
351
357
            rm -f $$tmpdir/$$lang.new.po; \
352
358
          else \