]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
po: Rename Makefile.in.in to Makefile.in.
authorBruno Haible <bruno@clisp.org>
Tue, 10 Dec 2024 03:32:36 +0000 (04:32 +0100)
committerBruno Haible <bruno@clisp.org>
Tue, 10 Dec 2024 03:32:36 +0000 (04:32 +0100)
* gettext-runtime/po/Makefile.in: Renamed from gettext-runtime/po/Makefile.in.in.
(distclean): Don't remove Makefile.in.
* gettext-runtime/m4/po.m4 (AM_PO_SUBDIRS): Remove the 'po-directories'
commands.
* gettext-runtime/configure.ac: Update AC_OUTPUT invocation.
* gettext-runtime/Makefile.am (maintainer-update-po): Update.
* gettext-tools/configure.ac: Update AC_OUTPUT invocation.
* gettext-tools/Makefile.am (maintainer-update-po): Update.
* gettext-tools/doc/gettext.texi (Translator advice, po/Rules-*, configure.ac,
Files under Version Control, Maintainers for other Languages): Update.
* gettext-tools/doc/gettextize.texi: Update.
* gettext-tools/examples/README: Update.
* gettext-tools/examples/hello-c/autoclean.sh: Update.
* gettext-tools/examples/hello-c-gnome/autoclean.sh: Likewise.
* gettext-tools/examples/hello-c-gnome3/autoclean.sh: Likewise.
* gettext-tools/examples/hello-c++/autoclean.sh: Likewise.
* gettext-tools/examples/hello-c++-gnome/autoclean.sh: Likewise.
* gettext-tools/examples/hello-c++-kde/autoclean.sh: Likewise.
* gettext-tools/examples/hello-c++20/autoclean.sh: Likewise.
* gettext-tools/examples/hello-objc/autoclean.sh: Likewise.
* gettext-tools/examples/hello-objc-gnome/autoclean.sh: Likewise.
* gettext-tools/misc/autopoint.in: Update search for po directories.
* gettext-tools/misc/gettextize.in: Treat Makefile.in like Makefile.in.in
before. Treat Makefile.in.in as a removed file.
* gettext-tools/tests/autopoint-2: Prepare for bumping ARCHIVE_VERSION.
* gettext-tools/tests/autopoint-3: Likewise.
* autogen.sh: Copy po/Makefile.in instead of po/Makefile.in.in.
* Makefile.am (distcheck-hook): Update.
* NEWS: Mention the change.

27 files changed:
.gitignore
Admin/release-steps
Makefile.am
NEWS
autogen.sh
gettext-runtime/Makefile.am
gettext-runtime/configure.ac
gettext-runtime/m4/po.m4
gettext-runtime/po/Makefile.in [moved from gettext-runtime/po/Makefile.in.in with 98% similarity]
gettext-tools/Makefile.am
gettext-tools/configure.ac
gettext-tools/doc/gettext.texi
gettext-tools/doc/gettextize.texi
gettext-tools/examples/README
gettext-tools/examples/hello-c++-gnome/autoclean.sh
gettext-tools/examples/hello-c++-kde/autoclean.sh
gettext-tools/examples/hello-c++/autoclean.sh
gettext-tools/examples/hello-c++20/autoclean.sh
gettext-tools/examples/hello-c-gnome/autoclean.sh
gettext-tools/examples/hello-c-gnome3/autoclean.sh
gettext-tools/examples/hello-c/autoclean.sh
gettext-tools/examples/hello-objc-gnome/autoclean.sh
gettext-tools/examples/hello-objc/autoclean.sh
gettext-tools/misc/autopoint.in
gettext-tools/misc/gettextize.in
gettext-tools/tests/autopoint-2
gettext-tools/tests/autopoint-3

index 9294f568554c6c0deea160b9c940d40f781ce20e..ca688f19f5cf3731937764723c5df050f3e702c6 100644 (file)
 /gettext-tools/examples/ChangeLog
 # Files copied from gettext-runtime:
 /gettext-tools/ABOUT-NLS
-/gettext-tools/po/Makefile.in.in
+/gettext-tools/po/Makefile.in
 /gettext-tools/po/Rules-quot
 /gettext-tools/po/boldquot.sed
 /gettext-tools/po/en@boldquot.header
index 6ec8d7f7b05ff77832107bf6812928bd1acdd82a..a5f94eb5f3cd37dad3a5f25b8f47fecac76d5014 100644 (file)
@@ -83,7 +83,7 @@ We assume that the following environment variables are set:
     run.sh in gettext-runtime/doc/Admin/.  Copy resulting matrix.texi
     into gettext-runtime/doc/.  Update the STATUS date in nls.texi.
 
-  - gettext-runtime/po/Makefile.in.in
+  - gettext-runtime/po/Makefile.in
 
     Update Origin version.
 
index 05a88e5ba162ea58f0c74d2c0b7fa7c544810041..b83783f1ed5fda8817a4b8a5588c6f2bb4d7531c 100644 (file)
@@ -66,7 +66,7 @@ $(srcdir)/configure: $(srcdir)/gettext-runtime/configure.ac $(srcdir)/gettext-to
 
 distcheck-hook:
 # Verify that some files are the same.
-       cmp -s $(srcdir)/gettext-runtime/po/Makefile.in.in $(srcdir)/gettext-tools/po/Makefile.in.in
+       cmp -s $(srcdir)/gettext-runtime/po/Makefile.in $(srcdir)/gettext-tools/po/Makefile.in
        cmp -s $(srcdir)/gettext-runtime/po/Rules-quot $(srcdir)/gettext-tools/po/Rules-quot
        cmp -s $(srcdir)/gettext-runtime/po/boldquot.sed $(srcdir)/gettext-tools/po/boldquot.sed
        cmp -s $(srcdir)/gettext-runtime/po/quot.sed $(srcdir)/gettext-tools/po/quot.sed
diff --git a/NEWS b/NEWS
index 95173fc6a47937613ee64d7ada9d5d19be4db074..854a22c68a26215881e7ab03dffadf02bc52bec7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+Version 0.24 - December 2024
+
+# Improvements for maintainers:
+  * The contents of the po/ directory has been changed:
+    - A file Makefile.in replaces the old Makefile.in.in.
+
 Version 0.23 - December 2024
 
 # Internationalized data formats:
index a5621ad5c3d67237c850f70f57e52c40f1718c63..3c1dc81cf2fad33fe631841522e1516fe95220e6 100755 (executable)
@@ -536,7 +536,7 @@ cd "$dir0"
 
 echo "$0: copying common files from gettext-runtime to gettext-tools..."
 cp -p gettext-runtime/ABOUT-NLS gettext-tools/ABOUT-NLS
-cp -p gettext-runtime/po/Makefile.in.in gettext-tools/po/Makefile.in.in
+cp -p gettext-runtime/po/Makefile.in gettext-tools/po/Makefile.in
 cp -p gettext-runtime/po/Rules-quot gettext-tools/po/Rules-quot
 cp -p gettext-runtime/po/boldquot.sed gettext-tools/po/boldquot.sed
 cp -p gettext-runtime/po/quot.sed gettext-tools/po/quot.sed
index 24925e95c191ab0f2bd4cebd0076e34304a95901..32e11cfe7fbcf8cf187a79ad01171b38c65a8a13 100644 (file)
@@ -65,5 +65,5 @@ gen-man1: src/gettext.c man/gettext.x \
 
 maintainer-update-po: $(top_builddir)/config.status
        $(SHELL) ./config.status --recheck
-       $(SHELL) ./config.status po/Makefile.in po-directories
+       $(SHELL) ./config.status po/Makefile
        cd po && $(MAKE) update-po
index e128f5be01a2842da02ef5d4c25815fe53438bb0..bf52be77d7e1c722472fb5af53f374b794e66ae6 100644 (file)
@@ -215,7 +215,7 @@ AC_CONFIG_FILES([gnulib-lib/Makefile])
 AC_CONFIG_FILES([src/Makefile])
 AC_CONFIG_FILES([src/gettext.sh], [chmod a+x src/gettext.sh])
 
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile])
 
 AC_CONFIG_FILES([man/Makefile])
 AC_CONFIG_FILES([man/x-to-1])
index 73e0436bd72f3110892b9a30cf6bdbd7862cf891..7fd63138184ce1c049788f549fc2918176c7786b 100644 (file)
@@ -31,7 +31,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
   AC_REQUIRE([AM_NLS])dnl
 
   dnl Release version of the gettext macros. This is used to ensure that
-  dnl the gettext macros and po/Makefile.in.in are in sync.
+  dnl the gettext macros and po/Makefile.in are in sync.
   AC_SUBST([GETTEXT_MACRO_VERSION], [0.24])
 
   dnl Perform the following tests also if --disable-nls has been given,
@@ -107,33 +107,6 @@ changequote([,])dnl
   dnl the set of available translations, given by the developer).
   DESIRED_LINGUAS="${LINGUAS-\$(ALL_LINGUAS)}"
   AC_SUBST([DESIRED_LINGUAS])
-
-  AC_CONFIG_COMMANDS([po-directories], [[
-    for ac_file in $CONFIG_FILES; do
-      # Support "outfile[:infile[:infile...]]"
-      case "$ac_file" in
-        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
-      esac
-      # PO directories have a Makefile.in generated from Makefile.in.in.
-      case "$ac_file" in */Makefile.in)
-        # Adjust a relative srcdir.
-        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
-        ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
-        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
-        # In autoconf-2.13 it is called $ac_given_srcdir.
-        # In autoconf-2.50 it is called $srcdir.
-        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
-        # Treat a directory as a PO directory if and only if it has a
-        # POTFILES.in file. This allows packages to have multiple PO
-        # directories under different names or in different locations.
-        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
-          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
-          cat "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
-        fi
-        ;;
-      esac
-    done]],
-   [])
 ])
 
 dnl Postprocesses a Makefile in a directory containing PO files.
similarity index 98%
rename from gettext-runtime/po/Makefile.in.in
rename to gettext-runtime/po/Makefile.in
index 613e34787a095b1cbe0a92058f85cf0cb8f36bf4..8690c40eb62bf700561f001544d4db285e178fac 100644 (file)
@@ -97,7 +97,7 @@ UPDATEPOFILES != for lang in $(ALL_LINGUAS); do echo $$lang.po-update; done
 DUMMYPOFILES != for lang in $(ALL_LINGUAS); do echo $$lang.nop; done
 
 DISTFILES.common = \
-  Makefile.in.in remove-potcdate.sed \
+  Makefile.in remove-potcdate.sed \
   $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) \
   $(DISTFILES.common.extra3) $(DISTFILES.common.extra4) \
   $(DISTFILES.common.extra5) $(DISTFILES.common.extra6)
@@ -181,10 +181,10 @@ $(GMOFILES): $(srcdir)/$(DOMAIN).pot
 all-yes: $(srcdir)/stamp-po
 all-no:
 
-# Ensure that the gettext macros and this Makefile.in.in are in sync.
+# Ensure that the gettext macros and this Makefile.in are in sync.
 CHECK_MACRO_VERSION = \
        test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \
-         || { 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; \
+         || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \
               exit 1; \
             }
 
@@ -455,7 +455,7 @@ mostlyclean:
 clean: mostlyclean
 
 distclean: clean
-       rm -f Makefile Makefile.in
+       rm -f Makefile
 
 maintainer-clean: distclean
        @echo "This command is intended for maintainers to use;"
@@ -567,9 +567,9 @@ include $(RULES_FILES)
 # because execution permission bits may not work on the current file system.
 # Use @SHELL@, which is the shell determined by autoconf for the use by its
 # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient.
-Makefile: Makefile.in.in Makevars $(top_builddir)/config.status
+Makefile: Makefile.in Makevars $(top_builddir)/config.status
        cd $(top_builddir) \
-         && @SHELL@ ./config.status $(subdir)/$@.in po-directories
+         && @SHELL@ ./config.status $(subdir)/$@
 
 force:
 
index 6cabe30ee2b622ebce28684ef4e0a2bb9653fc68..075b7c9a243dce0e59163c71f85b03613af391f3 100644 (file)
@@ -178,6 +178,6 @@ distdir2: programs-for-distdir
 
 maintainer-update-po: $(top_builddir)/config.status
        $(SHELL) ./config.status --recheck
-       $(SHELL) ./config.status po/Makefile.in po-directories
+       $(SHELL) ./config.status po/Makefile
        cd po && $(MAKE) update-po
        cd examples && $(MAKE) maintainer-update-po
index 034936c841581f42210da1a8ca6e546d86925ac1..5ff18b81ee92364246552d5e06985601899afb85 100644 (file)
@@ -639,7 +639,7 @@ AC_CONFIG_FILES([src/user-email:src/user-email.sh.in])
 AC_CONFIG_FILES([libgettextpo/Makefile])
 AC_CONFIG_FILES([libgettextpo/exported.sh])
 
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile])
 
 AC_CONFIG_FILES([projects/Makefile])
 
index 680c7309dbe66c890d0f6d8441cadd929dcb7146..6be7e556e0c1a2b264dc08c4e93e5b4466b40b6b 100644 (file)
@@ -2952,10 +2952,10 @@ but if there is other code between the comment and the translatable string,
 the comment no longer applies.
 
 Note: The string @code{TRANSLATORS:} is a convention, enabled by the
-@code{Makefile.in.in} file that is part of a package's build system.
+@code{Makefile.in} file that is part of a package's build system.
 It is not enabled by default in @code{xgettext}.
 If you are using @code{xgettext}
-without the @code{Makefile.in.in} infrastructure,
+without the @code{Makefile.in} infrastructure,
 you will need to pass the option @code{--add-comments=TRANSLATORS:} yourself.
 
 @node c-format Flag
@@ -8704,12 +8704,12 @@ possible to specify @code{xgettext} options through the
 
 @node po/Rules-*
 @subsection Extending @file{Makefile} in @file{po/}
-@cindex @file{Makefile.in.in} extensions
+@cindex @file{Makefile.in} extensions
 
 All files called @file{Rules-*} in the @file{po/} directory get appended to
 the @file{po/Makefile} when it is created.  They present an opportunity to
 add rules for special PO files to the Makefile, without needing to mess
-with @file{po/Makefile.in.in}.
+with @file{po/Makefile.in}.
 
 @cindex quotation marks
 @vindex LANGUAGE@r{, environment variable}
@@ -8785,14 +8785,12 @@ The @code{AC_OUTPUT} directive, at the end of your @file{configure.ac}
 file, needs to be modified in two ways:
 
 @example
-AC_OUTPUT([@var{existing configuration files} po/Makefile.in],
+AC_OUTPUT([@var{existing configuration files} po/Makefile],
 [@var{existing additional actions}])
 @end example
 
 The modification to the first argument to @code{AC_OUTPUT} asks
 for substitution in the @file{po/} directory.
-Note the @samp{.in} suffix used for @file{po/} only.  This is because
-the distributed file is really @file{po/Makefile.in.in}.
 
 @end enumerate
 
@@ -9480,7 +9478,7 @@ undiscovered due to this constellation.
 There are basically three ways to deal with generated files in the
 context of a version controlled repository, such as @file{configure}
 generated from @file{configure.ac}, @code{@var{parser}.c} generated
-from @code{@var{parser}.y}, or @code{po/Makefile.in.in} autoinstalled
+from @code{@var{parser}.y}, or @code{po/Makefile.in} autoinstalled
 by @code{gettextize} or @code{autopoint}.
 
 @enumerate
@@ -10238,7 +10236,7 @@ variable in @file{po/Makevars} (@pxref{po/Makevars}) should be adjusted to
 match the @code{xgettext} options for that particular programming language.
 If the package uses more than one programming language with @code{gettext}
 support, it becomes necessary to change the POT file construction rule
-in @file{po/Makefile.in.in}.  It is recommended to make one @code{xgettext}
+in @file{po/Makefile.in}.  It is recommended to make one @code{xgettext}
 invocation per programming language, each with the options appropriate for
 that language, and to combine the resulting files using @code{msgcat}.
 @end itemize
index 5646471bc4d5d705aac409610e8b240c1c77eac1..90167c77652e8312624e98ad59016c442d357bad 100644 (file)
@@ -112,10 +112,10 @@ packages that use the Automake option @samp{gnits}:
 @item
 A @file{po/} directory is created for eventually holding
 all translation files, but initially only containing the file
-@file{po/Makefile.in.in} from the GNU @code{gettext} distribution
-(beware the double @samp{.in} in the file name) and a few auxiliary
+@file{po/Makefile.in} from the GNU @code{gettext} distribution
+and a few auxiliary
 files.  If the @file{po/} directory already exists, it will be preserved
-along with the files it contains, and only @file{Makefile.in.in} and
+along with the files it contains, and only @file{Makefile.in} and
 the auxiliary files will be overwritten.
 
 If @samp{--po-dir} has been specified, this holds for every directory
index e9dfdc7f022906229e7923fbc3b8dd5f909b9db8..9496102a2b90e679bff5946b18003b0ffc58c062 100644 (file)
@@ -54,15 +54,15 @@ Makefile types:
 
     Example                    Binary catalog format   Makefile type
 
-    hello-c                    .gmo                    Makefile.in.in
-    hello-c-gnome              .gmo                    Makefile.in.in
-    hello-c-gnome3             .gmo                    Makefile.in.in
-    hello-c++                  .gmo                    Makefile.in.in
-    hello-c++20                .gmo                    Makefile.in.in
-    hello-c++-kde              .gmo                    Makefile.in.in
-    hello-c++-gnome            .gmo                    Makefile.in.in
-    hello-objc                 .gmo                    Makefile.in.in
-    hello-objc-gnome           .gmo                    Makefile.in.in
+    hello-c                    .gmo                    Makefile.in
+    hello-c-gnome              .gmo                    Makefile.in
+    hello-c-gnome3             .gmo                    Makefile.in
+    hello-c++                  .gmo                    Makefile.in
+    hello-c++20                .gmo                    Makefile.in
+    hello-c++-kde              .gmo                    Makefile.in
+    hello-c++-gnome            .gmo                    Makefile.in
+    hello-objc                 .gmo                    Makefile.in
+    hello-objc-gnome           .gmo                    Makefile.in
     hello-c++-wxwidgets        .gmo                    Makefile.am
     hello-sh                   .gmo                    Makefile.am
     hello-python               .gmo                    Makefile.am
index 9b8332fb282055fcc13b321d80e7054f54000af8..b01089086572c744a2fde8cf72a1f5d83e298223 100755 (executable)
@@ -21,7 +21,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 99f538a4aac75a5f2be445a97daa9810bd180777..2b3e4d59c0423e35f995a0a186d7bcdfc10a198a 100755 (executable)
@@ -27,7 +27,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 rm -f admin/config.rpath
 
index 1838e8d232aa0fee0d512f9fa715d4e1af1af925..8c4062abff6b6bb550332d54d0ef97b178c75e3b 100755 (executable)
@@ -24,7 +24,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 1838e8d232aa0fee0d512f9fa715d4e1af1af925..8c4062abff6b6bb550332d54d0ef97b178c75e3b 100755 (executable)
@@ -24,7 +24,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 9b8332fb282055fcc13b321d80e7054f54000af8..b01089086572c744a2fde8cf72a1f5d83e298223 100755 (executable)
@@ -21,7 +21,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 9b8332fb282055fcc13b321d80e7054f54000af8..b01089086572c744a2fde8cf72a1f5d83e298223 100755 (executable)
@@ -21,7 +21,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 1838e8d232aa0fee0d512f9fa715d4e1af1af925..8c4062abff6b6bb550332d54d0ef97b178c75e3b 100755 (executable)
@@ -24,7 +24,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 9b8332fb282055fcc13b321d80e7054f54000af8..b01089086572c744a2fde8cf72a1f5d83e298223 100755 (executable)
@@ -21,7 +21,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index 1838e8d232aa0fee0d512f9fa715d4e1af1af925..8c4062abff6b6bb550332d54d0ef97b178c75e3b 100755 (executable)
@@ -24,7 +24,7 @@ rm -f m4/lib-prefix.m4
 rm -f m4/nls.m4
 rm -f m4/po.m4
 rm -f m4/progtest.m4
-rm -f po/Makefile.in.in
+rm -f po/Makefile.in
 rm -f po/remove-potcdate.sed
 
 # Generated by aclocal.
index fdadfa8c0afec4ea5d66a0836c87b7dfb3cbcad3..928ec99be09906063b743822799dac03b5cc6520 100644 (file)
@@ -463,12 +463,13 @@ fi
 
 # Check in which directory or directories the po/* infrastructure belongs.
 configfiles=`"$func_trace" AC_CONFIG_FILES "$configure_in"`
-# PO directories have a Makefile.in generated from Makefile.in.in.
+# PO directories have a Makefile generated from Makefile.in.
 # Treat a directory as a PO directory if and only if it has a
 # POTFILES.in file. This allows packages to have multiple PO
 # directories under different names or in different locations.
-sed_remove_Makefile_in='s,/Makefile\.in$,,'
-podirs=`for f in $configfiles; do case "$f" in */Makefile.in) echo $f;; esac; done | sed -e "$sed_remove_Makefile_in"`
+sed_remove_Makefile='s,/Makefile$,,'
+podirs=`for f in $configfiles; do case "$f" in */Makefile) echo $f;; esac; done | sed -e "$sed_remove_Makefile"`
+podirs=`for d in $podirs; do if test -r $d/POTFILES.in; then echo $d; fi; done`
 if test -z "$podirs"; then
   # If we cannot get the list of PO directories from configure.ac, assume the
   # common default.
index e3e9440a2f93eb6d294abdf1a112e8c561b0ecb0..8c852dcfa2d3b2f5ff4f240c2bc3efc4c0bf1b34 100644 (file)
@@ -359,6 +359,9 @@ if test $force -eq 0; then
     func_fatal_error "intl/ subdirectory exists: use option -f if you really want to delete it."
   fi
   for podir in $podirs; do
+    if test -f "$podir/Makefile.in"; then
+      func_fatal_error "$podir/Makefile.in exists: use option -f if you really want to delete it."
+    fi
     if test -f "$podir/Makefile.in.in"; then
       func_fatal_error "$podir/Makefile.in.in exists: use option -f if you really want to delete it."
     fi
@@ -715,14 +718,14 @@ fi
 cd po
 for podir in $podirs; do
   $do_changelog && func_poChangeLog_init
-  for file in Makefile.in.in; do
+  for file in Makefile.in; do
     same=no
     if test -f "$srcdir/$podir/$file"; then
       if cmp -s $file "$srcdir/$podir/$file"; then
         same=yes
       fi
     else
-      added_acoutput="$added_acoutput $podir/Makefile.in"
+      added_acoutput="$added_acoutput $podir/Makefile"
     fi
     if $do_changelog && test $same = no; then
       if test -f "$srcdir/$podir/$file"; then
@@ -734,9 +737,18 @@ for podir in $podirs; do
     func_backup "$podir/$file"
     func_linkorcopy $file "$gettext_datadir/po/$file" "$podir/$file"
   done
+  for file in Makefile.in.in; do
+    if test -f "$srcdir/$podir/$file"; then
+      if $do_changelog; then
+        func_poChangeLog_add_entry "   * $file: Remove file."
+      fi
+      func_backup "$podir/$file"
+      rm -f "$srcdir/$podir/$file"
+    fi
+  done
   for file in *; do
     case $file in
-      Makefile.in.in)
+      Makefile.in | Makefile.in.in)
         # Already handled above.
         ;;
       Makevars.template)
@@ -813,7 +825,7 @@ m4filelist='
   po.m4 progtest.m4'
 
 # All sorts of bugs could occur if the configure file was remade with the wrong
-# version of gettext.m4 et al. (because then the configure and the po/Makefile.in.in
+# version of gettext.m4 et al. (because then the configure and the po/Makefile.in
 # don't fit together). It is therefore important that the package carries the
 # right versions of gettext.m4 et al. with it.
 if test -f "$srcdir/Makefile.am"; then
index 1b41efa14937e95e143652e5ffa33a375ebdaade..c82a1428930439ab8fcb45a82b2f787cc80e337a 100755 (executable)
@@ -30,7 +30,7 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
 
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -43,6 +43,7 @@ test -d po || Exit 1
 test -d build-aux || Exit 1
 
 test -f m4/po.m4 || Exit 1
+# if $ARCHIVE_VERSION > 0.23: po/Makefile.in
 test -f po/Makefile.in.in || Exit 1
 test -f build-aux/config.rpath || Exit 1
 
@@ -58,7 +59,7 @@ AM_GNU_GETTEXT
 AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
 
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -110,7 +111,7 @@ AC_CONFIG_MACRO_DIR([gettext-m4])
 AC_CONFIG_MACRO_DIR([m4])
 
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -123,6 +124,7 @@ test -d gettext-m4 || Exit 1
 test -d po || Exit 1
 
 test -f gettext-m4/po.m4 || Exit 1
+# if $ARCHIVE_VERSION > 0.23: po/Makefile.in
 test -f po/Makefile.in.in || Exit 1
 
 rm -fr gettext-m4 po ABOUT-NLS config.rpath
@@ -138,7 +140,7 @@ AM_GNU_GETTEXT([external], [need-formatstring-macros])
 AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
 
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -150,6 +152,7 @@ test -d m4 || Exit 1
 test -d po || Exit 1
 
 test -f m4/po.m4 || Exit 1
+# if $ARCHIVE_VERSION > 0.23: po/Makefile.in
 test -f po/Makefile.in.in || Exit 1
 
 rm -fr m4 po ABOUT-NLS config.rpath
@@ -170,7 +173,7 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
 
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -182,6 +185,7 @@ test -d m4 || Exit 1
 test -d po || Exit 1
 
 test -f m4/po.m4 || Exit 1
+# if $ARCHIVE_VERSION > 0.23: po/Makefile.in
 test -f po/Makefile.in.in || Exit 1
 
 rm -fr m4 po ABOUT-NLS config.rpath
index af2e17fd904285d3cca8b2291e0577492ecbe8a2..58f27a263e1b44285588b98b207dbbcab2cba00b 100755 (executable)
@@ -57,7 +57,7 @@ AM_GNU_GETTEXT_VERSION([$ARCHIVE_VERSION])
 
 dnl AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_FILES([Makefile])
-AC_CONFIG_FILES([po/Makefile.in])
+AC_CONFIG_FILES([po/Makefile.in]) dnl if $ARCHIVE_VERSION > 0.23: po/Makefile
 AC_OUTPUT
 EOF
 
@@ -97,6 +97,7 @@ test -d m4 || Exit 1
 test -d po || Exit 1
 
 test -f m4/po.m4 || Exit 1
+# if $ARCHIVE_VERSION > 0.23: po/Makefile.in
 test -f po/Makefile.in.in || Exit 1
 
 cp -p po/Makevars.template po/Makevars