~jamesodhunt/ubuntu/raring/upstart/1.6

« back to all changes in this revision

Viewing changes to po/Makefile.in.in

  • Committer: Scott James Remnant
  • Date: 2010-02-04 23:39:59 UTC
  • mfrom: (1182.1.45 upstart)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: scott@netsplit.com-20100204233959-7kajqjnaoh7208ob
Tags: upstream-0.6.5
ImportĀ upstreamĀ versionĀ 0.6.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for PO directory in any package using GNU gettext.
2
 
# Copyright (C) 1995-1997, 2000-2006 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
 
2
# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu>
3
3
#
4
4
# This file can be copied and used freely without restrictions.  It can
5
5
# be used in projects which are not available under the GNU General Public
8
8
# Please note that the actual code of GNU gettext is covered by the GNU
9
9
# General Public License and is *not* in the public domain.
10
10
#
11
 
# Origin: gettext-0.16
 
11
# Origin: gettext-0.17
 
12
GETTEXT_MACRO_VERSION = 0.17
12
13
 
13
14
PACKAGE = @PACKAGE@
14
15
VERSION = @VERSION@
95
96
        mv t-$@ $@
96
97
 
97
98
 
98
 
all: all-@USE_NLS@
 
99
all: check-macro-version all-@USE_NLS@
99
100
 
100
101
all-yes: stamp-po
101
102
all-no:
102
103
 
 
104
# Ensure that the gettext macros and this Makefile.in.in are in sync.
 
105
check-macro-version:
 
106
        @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
 
107
          || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
 
108
               exit 1; \
 
109
             }
 
110
 
103
111
# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no
104
112
# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because
105
113
# we don't want to bother translators with empty POT files). We assume that
130
138
# This target rebuilds $(DOMAIN).pot; it is an expensive operation.
131
139
# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed.
132
140
$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed
 
141
        if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \
 
142
          package_gnu='GNU '; \
 
143
        else \
 
144
          package_gnu=''; \
 
145
        fi; \
133
146
        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \
134
147
          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \
135
148
        else \
136
149
          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \
137
150
        fi; \
138
 
        $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
139
 
          --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \
140
 
          --files-from=$(srcdir)/POTFILES.in \
141
 
          --copyright-holder='$(COPYRIGHT_HOLDER)' \
142
 
          --msgid-bugs-address="$$msgid_bugs_address"
 
151
        case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \
 
152
          '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \
 
153
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
154
              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
 
155
              --files-from=$(srcdir)/POTFILES.in \
 
156
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
157
              --msgid-bugs-address="$$msgid_bugs_address" \
 
158
            ;; \
 
159
          *) \
 
160
            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \
 
161
              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \
 
162
              --files-from=$(srcdir)/POTFILES.in \
 
163
              --copyright-holder='$(COPYRIGHT_HOLDER)' \
 
164
              --package-name="$${package_gnu}@PACKAGE@" \
 
165
              --package-version='@VERSION@' \
 
166
              --msgid-bugs-address="$$msgid_bugs_address" \
 
167
            ;; \
 
168
        esac
143
169
        test ! -f $(DOMAIN).po || { \
144
170
          if test -f $(srcdir)/$(DOMAIN).pot; then \
145
171
            sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \