Show
Ignore:
Timestamp:
23/03/08 21:01:24 (7 months ago)
Author:
Rémi Denis-Courmont <rem@videolan.org>
git-committer:
Rémi Denis-Courmont <rem@videolan.org> 1206302484 +0200
git-parent:

[6abf349d0ab414b10c31c8a5b1772bda356eb141]

git-author:
Rémi Denis-Courmont <rem@videolan.org> 1206302484 +0200
Message:

Switch to gettext 0.17

The whole point of keeping the m4 and po/Makefile.in.in is to not need
to have the same version all over the place anyway, otherwise we might
as well put all these files to .gitignore...

Remove some old m4 macros as well.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • po/Makefile.in.in

    r1263062 r7bbc254  
    11# 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> 
    33# 
    44# This file can be copied and used freely without restrictions.  It can 
     
    99# General Public License and is *not* in the public domain. 
    1010# 
    11 # Origin: gettext-0.16 
     11# Origin: gettext-0.17 
     12GETTEXT_MACRO_VERSION = 0.17 
    1213 
    1314PACKAGE = @PACKAGE@ 
     
    9697 
    9798 
    98 all: all-@USE_NLS@ 
     99all: check-macro-version all-@USE_NLS@ 
    99100 
    100101all-yes: stamp-po 
    101102all-no: 
     103 
     104# Ensure that the gettext macros and this Makefile.in.in are in sync. 
     105check-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         } 
    102110 
    103111# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no 
     
    131139# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. 
    132140$(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; \ 
    133146    if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ 
    134147      msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ 
     
    136149      msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ 
    137150    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 
    143169    test ! -f $(DOMAIN).po || { \ 
    144170      if test -f $(srcdir)/$(DOMAIN).pot; then \