Ticket #135: external-intl.002.diff

File external-intl.002.diff, 17.2 KB (added by anonymous, 15 years ago)

Added by email2trac

  • ChangeLog

    diff --git a/ChangeLog b/ChangeLog
    index 291791f..11719e9 100644
    a b  
     12009-01-07  Enrico Weigelt, metux ITS <weigelt@metux.de> 
     2 
     3        * Makefile.am, autogen.sh, configure.ac: removed bundled libintl 
     4        stuff (calling autopoint, building intl/, ...) 
     5        * po/Makefile.in.in: added from gettext and tweaked a bit 
     6        * po/.gitignore: removed Makefile.in.in (not autogenerated anoymore) 
     7 
    182008-12-18  Roland Illig  <roland.illig@gmx.de> 
    29 
    310        * doc/mcedit.1: Documented the newly added filename:lineno 
  • Makefile.am

    diff --git a/Makefile.am b/Makefile.am
    index f7adf26..6f67f14 100644
    a b  
    22 
    33AUTOMAKE_OPTIONS = 1.5 
    44 
    5 SUBDIRS = intl po m4 vfs slang edit src lib doc syntax 
     5SUBDIRS = po m4 vfs slang edit src lib doc syntax 
    66 
    77EXTRA_DIST = FAQ HACKING INSTALL.FAST MAINTAINERS README.QNX TODO pkginfo.in prototype.in mc.qpg mc.spec 
    88 
  • autogen.sh

    diff --git a/autogen.sh b/autogen.sh
    index a2b4f92..b928079 100755
    a b set -e 
    99: ${AUTOHEADER=autoheader} 
    1010: ${AUTOMAKE=automake} 
    1111: ${ACLOCAL=aclocal} 
    12 : ${AUTOPOINT=autopoint} 
    1312: ${XGETTEXT=xgettext} 
     13: ${GETTEXT_DATADIR=/usr/share/gettext} 
    1414 
    1515srcdir=`dirname $0` 
    1616test -z "$srcdir" && srcdir=. 
    if test ! -d config; then 
    2828  mkdir config 
    2929fi 
    3030 
    31 # Recreate intl directory. 
    32 rm -rf intl 
    33 $AUTOPOINT --force || exit 1 
     31# get in gettext stuff 
     32( cd config && ln -sf $GETTEXT_DATADIR/config.rpath ) 
     33touch ABOUT-NLS                                         # dummy needed for gettext 
     34( cd po && ln -sf $GETTEXT_DATADIR/po/remove-potcdate.sin) 
    3435 
    3536# Generate po/POTFILES.in 
    3637$XGETTEXT --keyword=_ --keyword=N_ --keyword=Q_ --output=- \ 
  • configure.ac

    diff --git a/configure.ac b/configure.ac
    index cfaaa7d..9fb0540 100644
    a b doc/pl/mc.1 doc/pl/Makefile 
    624624doc/ru/mc.1 doc/ru/Makefile 
    625625doc/sr/mc.1 doc/sr/mcserv.8 doc/sr/Makefile 
    626626 
    627 intl/Makefile 
    628627po/Makefile.in 
    629628]) 
    630629 
  • po/.gitignore

    diff --git a/po/.gitignore b/po/.gitignore
    index 3c56b73..8a1fec1 100644
    a b  
    55*.pox 
    66Makefile 
    77Makefile.in 
    8 Makefile.in.in 
    98Makevars.template 
    109POTFILES 
    1110POTFILES.in 
  • new file po/Makefile.in.in

    diff --git a/po/Makefile.in.in b/po/Makefile.in.in
    new file mode 100644
    index 0000000..5db464b
    - +  
     1# Makefile for PO directory in any package using GNU gettext. 
     2# Copyright (C) 1995-1997, 2000-2007 by Ulrich Drepper <drepper@gnu.ai.mit.edu> 
     3# 
     4# This file can be copied and used freely without restrictions.  It can 
     5# be used in projects which are not available under the GNU General Public 
     6# License but which still want to provide support for the GNU gettext 
     7# functionality. 
     8# Please note that the actual code of GNU gettext is covered by the GNU 
     9# General Public License and is *not* in the public domain. 
     10# 
     11# Origin: gettext-0.17 
     12GETTEXT_MACRO_VERSION = 0.17 
     13 
     14PACKAGE = @PACKAGE@ 
     15VERSION = @VERSION@ 
     16PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ 
     17 
     18SHELL = /bin/sh 
     19@SET_MAKE@ 
     20 
     21srcdir = @srcdir@ 
     22top_srcdir = @top_srcdir@ 
     23VPATH = @srcdir@ 
     24 
     25prefix = @prefix@ 
     26exec_prefix = @exec_prefix@ 
     27datarootdir = @datarootdir@ 
     28datadir = @datadir@ 
     29localedir = @localedir@ 
     30gettextsrcdir = $(datadir)/gettext/po 
     31 
     32INSTALL = @INSTALL@ 
     33INSTALL_DATA = @INSTALL_DATA@ 
     34 
     35# We use $(mkdir_p). 
     36# In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as 
     37# "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, 
     38# @install_sh@ does not start with $(SHELL), so we add it. 
     39# In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined 
     40# either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake 
     41# versions, $(mkinstalldirs) and $(install_sh) are unused. 
     42mkinstalldirs = $(SHELL) @install_sh@ -d 
     43install_sh = $(SHELL) @install_sh@ 
     44MKDIR_P = @MKDIR_P@ 
     45mkdir_p = @mkdir_p@ 
     46 
     47GMSGFMT_ = @GMSGFMT@ 
     48GMSGFMT_no = @GMSGFMT@ 
     49GMSGFMT_yes = @GMSGFMT_015@ 
     50GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) 
     51MSGFMT_ = @MSGFMT@ 
     52MSGFMT_no = @MSGFMT@ 
     53MSGFMT_yes = @MSGFMT_015@ 
     54MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) 
     55XGETTEXT_ = @XGETTEXT@ 
     56XGETTEXT_no = @XGETTEXT@ 
     57XGETTEXT_yes = @XGETTEXT_015@ 
     58XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) 
     59MSGMERGE = msgmerge 
     60MSGMERGE_UPDATE = @MSGMERGE@ --update 
     61MSGINIT = msginit 
     62MSGCONV = msgconv 
     63MSGFILTER = msgfilter 
     64 
     65POFILES = @POFILES@ 
     66GMOFILES = @GMOFILES@ 
     67UPDATEPOFILES = @UPDATEPOFILES@ 
     68DUMMYPOFILES = @DUMMYPOFILES@ 
     69DISTFILES.common = Makefile.in.in remove-potcdate.sin \ 
     70$(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) 
     71DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ 
     72$(POFILES) $(GMOFILES) \ 
     73$(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) 
     74 
     75POTFILES = \ 
     76 
     77CATALOGS = @CATALOGS@ 
     78 
     79# Makevars gets inserted here. (Don't remove this line!) 
     80 
     81.SUFFIXES: 
     82.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update 
     83 
     84.po.mo: 
     85        @echo "$(MSGFMT) -c -o $@ $<"; \ 
     86        $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ 
     87 
     88.po.gmo: 
     89        @lang=`echo $* | sed -e 's,.*/,,'`; \ 
     90        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 
     91        echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o $${lang}.gmo $${lang}.po"; \ 
     92        cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo 
     93 
     94.sin.sed: 
     95        sed -e '/^#/d' $< > t-$@ 
     96        mv t-$@ $@ 
     97 
     98 
     99all: check-macro-version all-@USE_NLS@ 
     100 
     101all-yes: stamp-po 
     102all-no: 
     103 
     104# Ensure that the gettext macros and this Makefile.in.in are in sync. 
     105check-macro-version: 
     106        echo 
     107 
     108# $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no 
     109# internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because 
     110# we don't want to bother translators with empty POT files). We assume that 
     111# LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. 
     112# In this case, stamp-po is a nop (i.e. a phony target). 
     113 
     114# stamp-po is a timestamp denoting the last time at which the CATALOGS have 
     115# been loosely updated. Its purpose is that when a developer or translator 
     116# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, 
     117# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent 
     118# invocations of "make" will do nothing. This timestamp would not be necessary 
     119# if updating the $(CATALOGS) would always touch them; however, the rule for 
     120# $(POFILES) has been designed to not touch files that don't need to be 
     121# changed. 
     122stamp-po: $(srcdir)/$(DOMAIN).pot 
     123        test ! -f $(srcdir)/$(DOMAIN).pot || \ 
     124          test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) 
     125        @test ! -f $(srcdir)/$(DOMAIN).pot || { \ 
     126          echo "touch stamp-po" && \ 
     127          echo timestamp > stamp-poT && \ 
     128          mv stamp-poT stamp-po; \ 
     129        } 
     130 
     131# Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', 
     132# otherwise packages like GCC can not be built if only parts of the source 
     133# have been downloaded. 
     134 
     135# This target rebuilds $(DOMAIN).pot; it is an expensive operation. 
     136# Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. 
     137$(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed 
     138        if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ 
     139          package_gnu='GNU '; \ 
     140        else \ 
     141          package_gnu=''; \ 
     142        fi; \ 
     143        if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ 
     144          msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ 
     145        else \ 
     146          msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ 
     147        fi; \ 
     148        case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ 
     149          '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ 
     150            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ 
     151              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ 
     152              --files-from=$(srcdir)/POTFILES.in \ 
     153              --copyright-holder='$(COPYRIGHT_HOLDER)' \ 
     154              --msgid-bugs-address="$$msgid_bugs_address" \ 
     155            ;; \ 
     156          *) \ 
     157            $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ 
     158              --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) \ 
     159              --files-from=$(srcdir)/POTFILES.in \ 
     160              --copyright-holder='$(COPYRIGHT_HOLDER)' \ 
     161              --package-name="$${package_gnu}@PACKAGE@" \ 
     162              --package-version='@VERSION@' \ 
     163              --msgid-bugs-address="$$msgid_bugs_address" \ 
     164            ;; \ 
     165        esac 
     166        test ! -f $(DOMAIN).po || { \ 
     167          if test -f $(srcdir)/$(DOMAIN).pot; then \ 
     168            sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ 
     169            sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ 
     170            if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ 
     171              rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ 
     172            else \ 
     173              rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ 
     174              mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ 
     175            fi; \ 
     176          else \ 
     177            mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ 
     178          fi; \ 
     179        } 
     180 
     181# This rule has no dependencies: we don't need to update $(DOMAIN).pot at 
     182# every "make" invocation, only create it when it is missing. 
     183# Only "make $(DOMAIN).pot-update" or "make dist" will force an update. 
     184$(srcdir)/$(DOMAIN).pot: 
     185        $(MAKE) $(DOMAIN).pot-update 
     186 
     187# This target rebuilds a PO file if $(DOMAIN).pot has changed. 
     188# Note that a PO file is not touched if it doesn't need to be changed. 
     189$(POFILES): $(srcdir)/$(DOMAIN).pot 
     190        @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ 
     191        if test -f "$(srcdir)/$${lang}.po"; then \ 
     192          test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 
     193          echo "$${cdcmd}$(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot"; \ 
     194          cd $(srcdir) && $(MSGMERGE_UPDATE) $${lang}.po $(DOMAIN).pot; \ 
     195        else \ 
     196          $(MAKE) $${lang}.po-create; \ 
     197        fi 
     198 
     199 
     200install: install-exec install-data 
     201install-exec: 
     202install-data: install-data-@USE_NLS@ 
     203        if test "$(PACKAGE)" = "gettext-tools"; then \ 
     204          $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 
     205          for file in $(DISTFILES.common) Makevars.template; do \ 
     206            $(INSTALL_DATA) $(srcdir)/$$file \ 
     207                            $(DESTDIR)$(gettextsrcdir)/$$file; \ 
     208          done; \ 
     209          for file in Makevars; do \ 
     210            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 
     211          done; \ 
     212        else \ 
     213          : ; \ 
     214        fi 
     215install-data-no: all 
     216install-data-yes: all 
     217        $(mkdir_p) $(DESTDIR)$(datadir) 
     218        @catalogs='$(CATALOGS)'; \ 
     219        for cat in $$catalogs; do \ 
     220          cat=`basename $$cat`; \ 
     221          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 
     222          dir=$(localedir)/$$lang/LC_MESSAGES; \ 
     223          $(mkdir_p) $(DESTDIR)$$dir; \ 
     224          if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ 
     225          $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ 
     226          echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ 
     227          for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 
     228            if test -n "$$lc"; then \ 
     229              if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ 
     230                link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ 
     231                mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 
     232                mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     233                (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ 
     234                 for file in *; do \ 
     235                   if test -f $$file; then \ 
     236                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ 
     237                   fi; \ 
     238                 done); \ 
     239                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 
     240              else \ 
     241                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ 
     242                  :; \ 
     243                else \ 
     244                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     245                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     246                fi; \ 
     247              fi; \ 
     248              rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 
     249              ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ 
     250              ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ 
     251              cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 
     252              echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ 
     253            fi; \ 
     254          done; \ 
     255        done 
     256 
     257install-strip: install 
     258 
     259installdirs: installdirs-exec installdirs-data 
     260installdirs-exec: 
     261installdirs-data: installdirs-data-@USE_NLS@ 
     262        if test "$(PACKAGE)" = "gettext-tools"; then \ 
     263          $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ 
     264        else \ 
     265          : ; \ 
     266        fi 
     267installdirs-data-no: 
     268installdirs-data-yes: 
     269        $(mkdir_p) $(DESTDIR)$(datadir) 
     270        @catalogs='$(CATALOGS)'; \ 
     271        for cat in $$catalogs; do \ 
     272          cat=`basename $$cat`; \ 
     273          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 
     274          dir=$(localedir)/$$lang/LC_MESSAGES; \ 
     275          $(mkdir_p) $(DESTDIR)$$dir; \ 
     276          for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ 
     277            if test -n "$$lc"; then \ 
     278              if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ 
     279                link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ 
     280                mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 
     281                mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     282                (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ 
     283                 for file in *; do \ 
     284                   if test -f $$file; then \ 
     285                     ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ 
     286                   fi; \ 
     287                 done); \ 
     288                rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ 
     289              else \ 
     290                if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ 
     291                  :; \ 
     292                else \ 
     293                  rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     294                  mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ 
     295                fi; \ 
     296              fi; \ 
     297            fi; \ 
     298          done; \ 
     299        done 
     300 
     301# Define this as empty until I found a useful application. 
     302installcheck: 
     303 
     304uninstall: uninstall-exec uninstall-data 
     305uninstall-exec: 
     306uninstall-data: uninstall-data-@USE_NLS@ 
     307        if test "$(PACKAGE)" = "gettext-tools"; then \ 
     308          for file in $(DISTFILES.common) Makevars.template; do \ 
     309            rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ 
     310          done; \ 
     311        else \ 
     312          : ; \ 
     313        fi 
     314uninstall-data-no: 
     315uninstall-data-yes: 
     316        catalogs='$(CATALOGS)'; \ 
     317        for cat in $$catalogs; do \ 
     318          cat=`basename $$cat`; \ 
     319          lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ 
     320          for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ 
     321            rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ 
     322          done; \ 
     323        done 
     324 
     325check: all 
     326 
     327info dvi ps pdf html tags TAGS ctags CTAGS ID: 
     328 
     329mostlyclean: 
     330        rm -f remove-potcdate.sed 
     331        rm -f stamp-poT 
     332        rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po 
     333        rm -fr *.o 
     334 
     335clean: mostlyclean 
     336 
     337distclean: clean 
     338        rm -f Makefile Makefile.in POTFILES *.mo 
     339 
     340maintainer-clean: distclean 
     341        @echo "This command is intended for maintainers to use;" 
     342        @echo "it deletes files that may require special tools to rebuild." 
     343        rm -f stamp-po $(GMOFILES) 
     344 
     345distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) 
     346dist distdir: 
     347        $(MAKE) update-po 
     348        @$(MAKE) dist2 
     349# This is a separate target because 'update-po' must be executed before. 
     350dist2: stamp-po $(DISTFILES) 
     351        dists="$(DISTFILES)"; \ 
     352        if test "$(PACKAGE)" = "gettext-tools"; then \ 
     353          dists="$$dists Makevars.template"; \ 
     354        fi; \ 
     355        if test -f $(srcdir)/$(DOMAIN).pot; then \ 
     356          dists="$$dists $(DOMAIN).pot stamp-po"; \ 
     357        fi; \ 
     358        if test -f $(srcdir)/ChangeLog; then \ 
     359          dists="$$dists ChangeLog"; \ 
     360        fi; \ 
     361        for i in 0 1 2 3 4 5 6 7 8 9; do \ 
     362          if test -f $(srcdir)/ChangeLog.$$i; then \ 
     363            dists="$$dists ChangeLog.$$i"; \ 
     364          fi; \ 
     365        done; \ 
     366        if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ 
     367        for file in $$dists; do \ 
     368          if test -f $$file; then \ 
     369            cp -p $$file $(distdir) || exit 1; \ 
     370          else \ 
     371            cp -p $(srcdir)/$$file $(distdir) || exit 1; \ 
     372          fi; \ 
     373        done 
     374 
     375update-po: Makefile 
     376        $(MAKE) $(DOMAIN).pot-update 
     377        test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) 
     378        $(MAKE) update-gmo 
     379 
     380# General rule for creating PO files. 
     381 
     382.nop.po-create: 
     383        @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ 
     384        echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ 
     385        exit 1 
     386 
     387# General rule for updating PO files. 
     388 
     389.nop.po-update: 
     390        @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ 
     391        if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ 
     392        tmpdir=`pwd`; \ 
     393        echo "$$lang:"; \ 
     394        test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ 
     395        echo "$${cdcmd}$(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ 
     396        cd $(srcdir); \ 
     397        if $(MSGMERGE) $$lang.po $(DOMAIN).pot -o $$tmpdir/$$lang.new.po; then \ 
     398          if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ 
     399            rm -f $$tmpdir/$$lang.new.po; \ 
     400          else \ 
     401            if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ 
     402              :; \ 
     403            else \ 
     404              echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ 
     405              exit 1; \ 
     406            fi; \ 
     407          fi; \ 
     408        else \ 
     409          echo "msgmerge for $$lang.po failed!" 1>&2; \ 
     410          rm -f $$tmpdir/$$lang.new.po; \ 
     411        fi 
     412 
     413$(DUMMYPOFILES): 
     414 
     415update-gmo: Makefile $(GMOFILES) 
     416        @: 
     417 
     418Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ 
     419        cd $(top_builddir) \ 
     420          && $(SHELL) ./config.status $(subdir)/$@.in po-directories 
     421 
     422force: 
     423 
     424# Tell versions [3.59,3.63) of GNU make not to export all variables. 
     425# Otherwise a system limit (for SysV at least) may be exceeded. 
     426.NOEXPORT: