]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Refactor: New subdirectory gettext-tools/autotools/.
authorBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2025 16:41:00 +0000 (18:41 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 5 Oct 2025 18:00:05 +0000 (20:00 +0200)
* gettext-tools/Makefile.am (SUBDIRS): Add autotools. Remove misc.
(distdir2): Update.
* gettext-tools/autotools/Makefile.am: Renamed from
gettext-tools/misc/Makefile.am.
* gettext-tools/autotools/archive.dir.tar: Renamed from
gettext-tools/misc/archive.dir.tar.
* gettext-tools/autotools/add-to-archive: Renamed from
gettext-tools/misc/add-to-archive.
* gettext-tools/autotools/cvsuser.c: Renamed from gettext-tools/misc/cvsuser.c.
* gettext-tools/autotools/convert-archive.in: Renamed from
gettext-tools/misc/convert-archive.in.
* gettext-tools/autotools/autopoint.in: Renamed from
gettext-tools/misc/autopoint.in.
* gettext-tools/configure.ac: Update AC_CONFIG_FILES invocations.
* gettext-tools/man/Makefile.am (man_MAN1AUTOTOOLS): Renamed from man_MAN1MISC.
($(man_MAN1AUTOTOOLS)): Renamed from $(man_MAN1MISC).
(autopoint.1): Update.
* gettext-tools/examples/po/Makefile.am (USE_BUILT_PROGS): Update.
* gettext-tools/tests/autopoint-1: Update.
* gettext-tools/tests/autopoint-2: Likewise.
* gettext-tools/tests/autopoint-3: Likewise.
* check-copyright-headers (func_check_file): Update.

16 files changed:
.gitignore
Admin/release-steps
check-copyright-headers
gettext-tools/Makefile.am
gettext-tools/autotools/Makefile.am [moved from gettext-tools/misc/Makefile.am with 97% similarity]
gettext-tools/autotools/add-to-archive [moved from gettext-tools/misc/add-to-archive with 100% similarity]
gettext-tools/autotools/archive.dir.tar [moved from gettext-tools/misc/archive.dir.tar with 100% similarity]
gettext-tools/autotools/autopoint.in [moved from gettext-tools/misc/autopoint.in with 100% similarity]
gettext-tools/autotools/convert-archive.in [moved from gettext-tools/misc/convert-archive.in with 100% similarity]
gettext-tools/autotools/cvsuser.c [moved from gettext-tools/misc/cvsuser.c with 100% similarity]
gettext-tools/configure.ac
gettext-tools/examples/po/Makefile.am
gettext-tools/man/Makefile.am
gettext-tools/tests/autopoint-1
gettext-tools/tests/autopoint-2
gettext-tools/tests/autopoint-3

index e8be9827165a786a57d151bbb9f25adcc8c934c1..b4b16db895af4252f2f94623d350550879d6fb7d 100644 (file)
 /gettext-tools/configure
 /gettext-tools/config.h.in
 /gettext-tools/Makefile.in
+/gettext-tools/autotools/Makefile.in
 /gettext-tools/doc/Makefile.in
 /gettext-tools/emacs/Makefile.in
 /gettext-tools/examples/aclocal.m4
 /gettext-tools/libgrep/Makefile.in
 /gettext-tools/m4/Makefile.in
 /gettext-tools/man/Makefile.in
-/gettext-tools/misc/Makefile.in
 /gettext-tools/projects/Makefile.in
 /gettext-tools/src/Makefile.in
 /gettext-tools/styles/Makefile.in
 /gettext-runtime/man/textdomain.3.html
 /gettext-runtime/po/gettext-runtime.pot
 /gettext-runtime/po/stamp-po
+/gettext-tools/autotools/archive.*.tar.*
 /gettext-tools/doc/version.texi
 /gettext-tools/doc/stamp-vti
 /gettext-tools/doc/gettext.info
 /gettext-tools/man/recode-sr-latin.1.html
 /gettext-tools/man/xgettext.1
 /gettext-tools/man/xgettext.1.html
-/gettext-tools/misc/archive.*.tar.*
 /gettext-tools/po/gettext-tools.pot
 /gettext-tools/po/stamp-po
 # Files generated by "make", using gperf:
@@ -640,6 +640,10 @@ autom4te.cache/
 /gettext-tools/javaexec.sh
 /gettext-tools/libtool
 /gettext-tools/stamp-h1
+/gettext-tools/autotools/Makefile
+# (see DISTCLEANFILES in Makefile.am):
+/gettext-tools/autotools/autopoint
+/gettext-tools/autotools/convert-archive
 /gettext-tools/build-aux/xml-validate-10
 /gettext-tools/build-aux/xml-validate-11
 /gettext-tools/doc/Makefile
@@ -654,10 +658,6 @@ autom4te.cache/
 /gettext-tools/m4/Makefile
 /gettext-tools/man/Makefile
 /gettext-tools/man/x-to-1
-/gettext-tools/misc/Makefile
-# (see DISTCLEANFILES in Makefile.am):
-/gettext-tools/misc/autopoint
-/gettext-tools/misc/convert-archive
 /gettext-tools/po/Makefile.in
 /gettext-tools/po/Makefile
 /gettext-tools/projects/Makefile
index 39f4ed040dd0c9f0e94dc90df10df35f2e80309b..a0fc0c7c80418c96e437d5634a6cdcf452fe4d88 100644 (file)
@@ -123,9 +123,9 @@ We assume that the following environment variables are set:
     gettext-runtime/src/ngettext.c
     gettext-runtime/src/printf_gettext.c
     gettext-runtime/src/printf_ngettext.c
-    gettext-tools/misc/autopoint.in
-    gettext-tools/misc/convert-archive.in
-    gettext-tools/misc/gettextize.in
+    gettext-tools/wizard/gettextize.in
+    gettext-tools/autotools/autopoint.in
+    gettext-tools/autotools/convert-archive.in
     gettext-tools/src/cldr-plurals.c
     gettext-tools/src/hostname.c
     gettext-tools/src/msgattrib.c
@@ -161,7 +161,7 @@ We assume that the following environment variables are set:
 
     Update ARCHIVE_VERSION.
 
-  - gettext-tools/misc/autopoint.in
+  - gettext-tools/autotools/autopoint.in
 
     Update the 'case' statement around line 395 to include the latest release.
 
@@ -219,7 +219,7 @@ We assume that the following environment variables are set:
 
   Make 'autopoint' work in the new release:
 
-    (cd gettext-tools/misc
+    (cd gettext-tools/autotools
      ./add-to-archive ../../gettext-$CURRENT_VERSION.tar.gz)
 
   Update the examples:
index 7dd6db2ed29b70c954811a730c423351788742cd..1e0ce0488a8b6c30d8fd276c0ad89e04e6efe1f2 100755 (executable)
@@ -161,7 +161,7 @@ func_check_file ()
       # This is a form, used for communication with the FSF.
       return 0 ;;
 
-    /gettext-tools/misc/archive.dir.tar )
+    /gettext-tools/autotools/archive.dir.tar )
       # This is an archive of files that were part of earlier gettext releases.
       # As a binary file, it cannot have a copyright header.
       return 0 ;;
index cf1dd60066274b437a93f8490a868ee354a9a646..53d901ba34ca3dfb884f6c5b9d92164f4bad9503 100644 (file)
@@ -19,7 +19,7 @@
 AUTOMAKE_OPTIONS = 1.5 gnu
 ACLOCAL_AMFLAGS = -I m4 -I ../gettext-runtime/m4 -I ../m4 -I gnulib-m4 -I libgrep/gnulib-m4 -I libgettextpo/gnulib-m4 -I tests/gnulib-m4
 
-SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles wizard emacs misc man m4 tests system-tests gnulib-tests install-tests examples doc
+SUBDIRS = gnulib-lib libgrep src libgettextpo po its projects styles wizard autotools emacs man m4 tests system-tests gnulib-tests install-tests examples doc
 
 EXTRA_DIST = misc/disclaim-translations.txt
 MOSTLYCLEANFILES = core *.stackdump
@@ -265,7 +265,7 @@ gen-man1: programs-for-distdir \
 .PHONY: distdir2
 distdir2: programs-for-distdir
        cd wizard && $(MAKE) $(AM_MAKEFLAGS)
-       cd misc && $(MAKE) $(AM_MAKEFLAGS)
+       cd autotools && $(MAKE) $(AM_MAKEFLAGS)
        cd examples && $(MAKE) $(AM_MAKEFLAGS)
 
 
similarity index 97%
rename from gettext-tools/misc/Makefile.am
rename to gettext-tools/autotools/Makefile.am
index 7464b1d73afd2df033fe826cf6d88c0bac31efb6..1730f0fe2fea153ea25e41e780715a6292887ace 100644 (file)
@@ -1,4 +1,4 @@
-## Makefile for the gettext-tools/misc subdirectory of GNU gettext
+## Makefile for the gettext-tools/autotools subdirectory of GNU gettext
 ## Copyright (C) 1995-2025 Free Software Foundation, Inc.
 ##
 ## This program is free software: you can redistribute it and/or modify
index b288aa1dddd7e4c4dc05d10884d1d6f9e4270942..67ce19fb82260558445bfb318f6697beb515aa2b 100644 (file)
@@ -750,11 +750,11 @@ AC_CONFIG_FILES([styles/Makefile])
 AC_CONFIG_FILES([wizard/Makefile])
 AC_CONFIG_FILES([wizard/gettextize], [chmod a+x wizard/gettextize])
 
-AC_CONFIG_FILES([emacs/Makefile])
+AC_CONFIG_FILES([autotools/Makefile])
+AC_CONFIG_FILES([autotools/autopoint], [chmod a+x autotools/autopoint])
+AC_CONFIG_FILES([autotools/convert-archive], [chmod a+x autotools/convert-archive])
 
-AC_CONFIG_FILES([misc/Makefile])
-AC_CONFIG_FILES([misc/autopoint], [chmod a+x misc/autopoint])
-AC_CONFIG_FILES([misc/convert-archive], [chmod a+x misc/convert-archive])
+AC_CONFIG_FILES([emacs/Makefile])
 
 AC_CONFIG_FILES([man/Makefile])
 AC_CONFIG_FILES([man/x-to-1])
index 76eadc4b30c07ae32c32a87efd3b5f70b3fd3123..e440e3684d2823bd884627eae3453ed68a09192a 100644 (file)
@@ -263,8 +263,8 @@ $(DOMAIN).pot-update: $(POTFILES_DEPS) $(SMALLPOTS)
 # The environment variable 'gettext_datadir' is used by autopoint.
 # The environment variable 'GETTEXTDATADIR' is used by xgettext.
 USE_BUILT_PROGS = \
-  PATH="`pwd`/../../src$(PATH_SEPARATOR)`pwd`/../../misc$(PATH_SEPARATOR)$$PATH"; \
-  gettext_datadir="`pwd`/../../misc"; export gettext_datadir; \
+  PATH="`pwd`/../../src$(PATH_SEPARATOR)`pwd`/../../autotools$(PATH_SEPARATOR)$$PATH"; \
+  gettext_datadir="`pwd`/../../autotools"; export gettext_datadir; \
   GETTEXTDATADIR="`cd '$(srcdir)/../..' && pwd`"; export GETTEXTDATADIR;
 
 hello-c.pot : $(POTFILES_DEPS)
index 18a60656173eabd1571d1431fb471bedd5deb8f5..6442a4c6c81d108cf89b139e1ff3913b5565ba99 100644 (file)
@@ -22,7 +22,7 @@ AUTOMAKE_OPTIONS = 1.2 gnits
 EXTRA_DIST =
 
 # A manual page for each of the bin_PROGRAMS in src/Makefile.am
-# and for each of the bin_SCRIPTS in wizard/Makefile.am, misc/Makefile.am.
+# and for each of the bin_SCRIPTS in wizard/Makefile.am, autotools/Makefile.am.
 
 man_aux = \
 msgcmp.x msgfmt.x msgmerge.x msgunfmt.x xgettext.x \
@@ -40,9 +40,9 @@ msggrep.1 msginit.1 msguniq.1 \
 recode-sr-latin.1
 man_MAN1WIZARD = \
 gettextize.1
-man_MAN1MISC = \
+man_MAN1AUTOTOOLS = \
 autopoint.1
-man_MAN1 = $(man_MAN1SRC) $(man_MAN1WIZARD) $(man_MAN1MISC)
+man_MAN1 = $(man_MAN1SRC) $(man_MAN1WIZARD) $(man_MAN1AUTOTOOLS)
 man_MANS = $(man_MAN1)
 
 man_HTML = \
@@ -127,12 +127,12 @@ $(man_MAN1WIZARD): help2man $(top_srcdir)/../.version
 
 gettextize.1: gettextize.x ../wizard/gettextize.in
 
-$(man_MAN1MISC): help2man $(top_srcdir)/../.version
+$(man_MAN1AUTOTOOLS): help2man $(top_srcdir)/../.version
        progname=`echo $@ | sed -e 's/\.in$$//' -e 's/\.1$$//'`; \
        IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN) --version-option=--version-without-config" \
-         ../misc/$${progname}$(EXEEXT) $(srcdir)/$${progname}.x $@
+         ../autotools/$${progname}$(EXEEXT) $(srcdir)/$${progname}.x $@
 
-autopoint.1: autopoint.x ../misc/autopoint.in
+autopoint.1: autopoint.x ../autotools/autopoint.in
 
 
 # Man pages in HTML format.
index 19b01c53046a4ec32a3778e309cca885e2eda797..e820ac0992e3ad91529844207640ebab938075f1 100755 (executable)
@@ -16,7 +16,7 @@ ${AUTOCONF} >/dev/null 2>/dev/null \
 
 rm -f configure.ac
 
-gettext_datadir=$top_builddir/misc
+gettext_datadir=$top_builddir/autotools
 export gettext_datadir
 
 # Check if sanity checks are actually working.
index 1b41efa14937e95e143652e5ffa33a375ebdaade..d34c5e1d30ef077e209e4021704971c935107685 100755 (executable)
@@ -16,7 +16,7 @@ ${AUTOCONF} >/dev/null 2>/dev/null \
 
 rm -f configure.ac
 
-gettext_datadir=$top_builddir/misc
+gettext_datadir=$top_builddir/autotools
 export gettext_datadir
 
 # Check for not copying libintl source.
index d0ec54964afa92afba901a4f2a59fe5cb0bba619..bf676e714be457064420e4c4c869110974b01d3f 100755 (executable)
@@ -42,7 +42,7 @@ ${AUTOMAKE} --add-missing >/dev/null 2>/dev/null \
 
 rm -f configure.ac Makefile.am
 
-gettext_datadir=$top_builddir/misc
+gettext_datadir=$top_builddir/autotools
 export gettext_datadir
 
 cat <<EOF >configure.ac