66 Commits

Author SHA1 Message Date
Bernhard Voelker
733bb9a054 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* tests/sample-test: Adjust to use the single most recent year.
* All other files: Update copyright years via the above make run.
2026-01-02 11:46:15 +01:00
Bernhard Voelker
f1f6471ae8 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* tests/sample-test: Adjust to use the single most recent year.
* All other files: Update copyright years via the above make run.
2025-01-04 11:43:53 +01:00
Bernhard Voelker
f4ec39eee0 maint: import tests/init.sh from Gnulib during bootstrap
* bootstrap.conf (bootstrap_post_import_hook): Use gnulib-tool
--copy-file to import tests/init.sh.
* tests/init.sh: Remove file.
* tests/.gitignore (/init.sh): Add entry.
* Makefile.am (update-gnulib-to-latest): Remove handling tests/init.sh.
2024-11-03 21:32:17 +01:00
James Youngman
88850fd0c6 maint: turn on Automake option subdir-objects.
Enabling subdir-objects fixes Savannah bug #65794.

* Makefile.am(AUTOMAKE_OPTIONS): enable subdir-objects.
2024-05-26 17:01:20 +01:00
Bernhard Voelker
ea1abfa968 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* tests/sample-test: Adjust to use the single most recent year.
* All other files: Update copyright years via the above make run.
2024-01-02 09:13:29 +01:00
Bernhard Voelker
dbd0f01503 maint: adjust make target 'gnulib-sync' wrt/ autogen and autopull
Since gnulib update in findutils commit f293f5da80f9, there are more
files the make target 'gnulib-sync' alias 'update-gnulib-to-latest'
needs to copy.

* Makefile.am (gnulib-sync): Use 'fdl.texi' from gnulib now as it is
identical to 'fdl-1.3.texi'.
Copy autogen.sh, autopull.sh, bootstrap-funclib.sh and bootstrap from
the 'gnulib/top' directory.
2024-01-02 00:08:48 +01:00
Bernhard Voelker
73d020f472 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* tests/sample-test: Adjust to use the single most recent year.
* All other files: Update copyright years via the above make run.
2023-01-01 23:51:15 +01:00
Bernhard Voelker
36ec95c4d6 maint: fix code smell
Detected by `make findutils-check-smells` (ironically for itself):
  error: ./Makefile.am:88: Spaces at start of makefile line

* Makefile.am (findutils-check-smells): Fix tab indentation of the
recipe, and re-indent for better reading.
2022-04-24 13:37:00 +02:00
Bernhard Voelker
db5ec614a7 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
The format of the copyright year number range in Texinfo files is
"YEAR1--YEAR2" now, i.e., with 2x '-'.
* tests/sample-test: Adjust to use the single most recent year.
* All other files: Update copyright years via the above make run.
2022-01-02 18:42:35 +01:00
Bernhard Voelker
c5da48bcff maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
The format of the copyright year number range in Texinfo files is
"YEAR1--YEAR2" now, i.e., with 2x '-'.
* tests/sample-test: Likewise, here to avoid starting a year number range.
* All other files: Update copyright years via the above make run.
2021-01-02 01:46:51 +01:00
Bernhard Voelker
c0827572fd maint: explicitly copy fdl-1.3 from gnulib
* Makefile.am (update-gnulib-to-latest): Prompted by a probably
accidental difference between gnulib's fdl.texi and fdl-1.3.texi
(to be fixed in GNU standards first), change the command to
explicitly copy version 1.3 of the FDL.
* doc/fdl.texi: Update from 'gnulib/doc/fdl-1.3.texi'.

See https://lists.gnu.org/r/bug-standards/2020-08/msg00000.html
and https://lists.gnu.org/r/bug-gnulib/2020-07/msg00185.html
2020-08-14 00:08:42 +02:00
Bernhard Voelker
f066937370 maint: copy FDL from gnulib instead of using it as module
Since the previous gnulib update, bootstrap outputs this warning:

  Notice from module fdl:
    Don't use this module! Instead, copy the referenced license file \
    into your version control repository.

See gnulib commit:
  https://git.sv.gnu.org/cgit/gnulib.git/commit/?id=88fc5afbccc9

* bootstrap.conf (gnulib_modules): Remove 'fdl'.
* doc/fdl.texi: Add file as a copy of 'gnulib/doc/fdl.texi'.
* doc/.gitignore (/fdl.texi): Remove to no longer ignore that file.
* Makefile.am (update-gnulib-to-latest): Add command to sync the file.
While at it, add the command to show the git status for
'tests/init.sh' as well.
2020-05-25 18:05:55 +02:00
Bernhard Voelker
f7ea96d2b8 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* tests/sample-test: Likewise, here to avoid starting a year number range.
* All other files: Update copyright years via the above make run.
2020-01-01 16:22:52 +01:00
Bernhard Voelker
f72b299cdd tests: add shell-style test framework
Borrow the 'tests' framework from GNU coreutils.  This allows better
shell-style tests with more control over stdin, stdout, stderr, signals,
preparatory steps, cleanup, return code verification, root-only tests,
etc.

* .gitignore: Add entries for per-test *.log and *.trs files, and the
'test-suite.log'.
* .x-update-copyright: Exempt 'tests/init.sh' as this comes from gnulib.
* Makefile.am: Include 'tests/local.mk'.
(EXTRA_DIST): Add 'tests/GNUmakefile'.
(SUBDIRS): Move 'gnulib-tests' to the end, i.e., run our own tests first.
(ALL_RECURSIVE_TARGETS): Initialize.
(update-gnulib-to-latest): Copy 'tests/init.sh' from gnulib.
* cfg.mk: Add some syntax-check rules.
* init.cfg: Add file.
* tests/GNUmakefile: Likewise.
* tests/envvar-check: Likewise.
* tests/init.sh: Likewise.
* tests/lang-default: Likewise.
* tests/local.mk: Likewise.
* tests/misc/help-version.sh: Likewise.
* tests/other-fs-tmpdir: Likewise.
* tests/sample-test: Likewise.
* tests/.gitignore: Likewise.
* NEWS (Changes to the build process): Mention the new test framework.
2019-01-09 00:24:34 +01:00
Bernhard Voelker
487d0701c5 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* All other files: Update copyright years via the above make run.
2019-01-04 23:47:26 +01:00
Bernhard Voelker
42e134a484 maint: provide make target to update gnulib to latest
* Makefile.am (gnulib-sync, update-gnulib-to-latest): Add targets to
pull the latest commit of the gnulib submodule, and also to copy over
the files we keep in sync.
* doc/find-maint.texi (How to update Gnulib to latest): Add section.
2018-11-02 21:35:17 +01:00
Bernhard Voelker
a22f795891 build: remove obsolete ALL_LINGUAS list
The list of languages is in po/LINGUAS since gettext-0.11.
Removing ALL_LINGUAS avoids the following warning:
  config.status: setting ALL_LINGUAS in configure.in is obsolete

* configure.ac (ALL_LINGUAS): Remove.
* Makefile.am (findutils-check-pofiles): Remove check.
(dist-hook): Remove dependency to findutils-check-pofiles.
2018-03-14 20:44:14 +01:00
Bernhard Voelker
e9340a8bd7 build: avoid use of $(RM)
Some make implementations, e.g. on NetBSD 7.1, lack it; therefore
avoid it in order to prevent error messages during 'make clean'.

* Makefile.am (coverage-clean): Replace $(RM) by 'rm -f'.
* find/Makefile.am: Likewise.
* lib/Makefile.am: Likewise.
* locate/Makefile.am: Likewise.
* xargs/Makefile.am: Likewise.
2018-03-14 20:44:14 +01:00
Bernhard Voelker
b028f53140 maint: give gnulib's test directory a better name
Rename from 'tests' to 'gnulib-tests' to make clearer that these
are the tests of gnulib, and not those of findutils.

* .gitignore (tests): Remove.
(/gnulib-tests/): Add entry.
* Makefile.am (SUBDIRS): s/tests/gnulib-tests/
(findutils-check-smells): Likewise.
(coverage-clean): Likewise.
* bootstrap.conf (gnulib_tool_option_extras): Add option
"--tests-base=gnulib-tests".
* configure.ac (AC_CONFIG_FILES): s/tests/gnulib-tests/ here, too.
2018-03-14 20:44:14 +01:00
Bernhard Voelker
1cc207f6eb maint: make inter-release --version output more useful
Now, each snapshot has a version "number" like 4.6-131-219-gda920ee,
which indicates that it is built using the 131st change set
(in _some_ repository) following the "v4.6" tag, and that da920ee
is a prefix of the commit SHA1.

* bootstrap.conf (gnulib_modules): Add git-version-gen.
* build-aux/.gitigore (/git-version-gen): Add entry.
* configure.ac: Run it to set the version from .tarball-version.
* Makefile.am (EXTRA_DIST): Add git-version-gen.
(dist-hook): Create .tarball-version in distribution tarballs,
never in a checked-out repository.
(AUTOMAKE_OPTIONS): Change from 'gnits' to 'gnu std-options readme-alpha'.
* .gitignore (.tarball-version): Add entry.
* doc/find-maint.texi (Making Releases): Adjust: tag before the build,
changed handling in NEWS, etc.
* NEWS (Changes to the build process): Document the change.
2018-03-14 20:44:14 +01:00
Bernhard Voelker
8705455ce0 maint: update copyright year number ranges
Run 'make update-copyright'.

* lib/regexprops.c (copying): Update the year number manually.
* All other files: Update copyright years via the above make run.
2018-01-01 19:27:15 +01:00
Bernhard Voelker
2c3dde5afc maint: remove bootstrap from distribution
* Makefile.am (EXTRA_DIST): Remove bootstrap.
2017-11-17 19:53:01 +01:00
Bernhard Voelker
0548a502cd maint: add copyright header to more files
* Makefile.am: Add copyright header.
* README: Likewise.
* TODO: Likewise.
* doc/perm.texi: Likewise; use 1994-2017 as Kevin brought it into
findutils from coreutils.
* find/Makefile.am: Add copyright header.
* lib/Makefile.am: Likewise.
* locate/Makefile.am: Likewise.
* xargs/Makefile.am: Likewise.
2017-10-23 00:57:57 +02:00
Bernhard Voelker
f704697121 maint: remove ChangeLog-2013 from distribution tarball
* Makefile.am (EXTRA_DIST): Remove ChangeLog-2013, as its content is
shipped in the generated ChangeLog file.

Reported by Steve in
http://lists.gnu.org/archive/html/bug-findutils/2016-10/msg00000.html
2016-11-02 23:31:56 +01:00
Bernhard Voelker
98f3d96a52 maint: fix file name in message of findutils-check-pofiles
* Makefile.am (findutils-check-pofiles): s/configure\.in/configure.ac/,
as that file has been renamed long ago (FINDUTILS_4_3_8-1-50-gc4ef190).
While at it, re-indent the lines to shorten the lines for readability.
(coverage-clean): Re-indent likewise.
(gen-ChangeLog): While at it, replace leading blanks by a tab here for
a proper make syntax; introduced in previous commit (v4.6.0-17-g48bf0d0).
2016-01-04 08:34:30 +01:00
James Youngman
48bf0d0c0d Add a shell script to generate ChangeLog; strip cherrypick comments.
* build-aux/gen-changelog.sh: Shell script for generating the
ChangeLog.  The effect is much the same as the previous version of
the gen-ChangeLog rule, but it is easier to run this script to
discover what the ChangeLog resulting from a recent commit is.
The only change is that we now also use --strip-cherry-pick.
* build-aux/Makefile.am (EXTRA_DIST): Distribute gen-changelog.sh.
* Makefile.am (gen-ChangeLog): Simplify the gen-ChangeLog rule by
calling gen-changelog.sh.
2016-01-02 09:29:08 +00:00
Bernhard Voelker
852e4225af maint: avoid syntax-check failures
* Makefile.am (gen-ChangeLog): Replace 8 spaces by a tab to avoid
sc_makefile_TAB_only_indentation failure.
* po/POTFILES.in: Remove some entries to let sc_po_check pass.
While at it, sort the entries.
* find/print.c (do_fprintf): Remove stray semicolon to let
sc_prohibit_double_semicolon pass.
* find/util.c (digest_mode): Likewise.
* bootstrap.conf: Change comment to let sc_prohibit_doubled_word pass.
* build-aux/git-log-fix: Remove empty lines at EOF to let
sc_prohibit_empty_lines_at_EOF pass.
* find/testsuite/Makefile.am: Likewise.
* find/testsuite/sv-34079.sh: Likewise.
* find/testsuite/test_inode.sh: Likewise.
* locate/testsuite/locate.gnu/slocate.exp: Likewise.
* lib/buildcmd.c: Remove unused include of openat header to let
sc_prohibit_openat_without_use pass.
* lib/listfile.c: Likewise.
* find/util.c: Remove unused include of 'verify.h' to let
sc_prohibit_verify_without_use pass.
* xargs/xargs.c: Likewise.
* find/parser.c (insert_regex): Mark error diagnostic for translation;
found by 'make sc_unmarked_diagnostics'.
* cfg.mk (exclude_file_name_regexp--sc_prohibit_strncpy): Exempt the
2 remaining sources using the possibly dangerous strncpy function
from the syntax-check.
2015-12-28 10:15:31 +00:00
James Youngman
322d05f39f Don't try to distribute nonexistent import-gnulib.sh
* Makefile.am (EXTRA_DIST): Don't try to distribute
import-gnulib.sh or import-gnulib.config since they have been
deleted.
2015-05-10 21:20:30 +01:00
James Youngman
9844cc828b Tell people to use bootstrap instead of import-gnulib.config
* Makefile.am (EXTRA_DIST): Distribute "bootstrap".
* README-hacking: Tell the reader to run ./bootstrap, not
import-gnulib.sh.
* doc/find-maint.texi (Using the GNU Portability Library): Remove
references to import-gnulib.sh.  There is no need to replace them
with references to ./bootstrap, because that content was outdated
by the switch to the use of the git submodule feature to manage
gnunlib.
2015-05-10 20:54:50 +01:00
Bernhard Voelker
b1a765b2e3 maint: generate ChangeLog from git commit messages
* ChangeLog: Remove, as it is not maintained manually any longer.
* Makefile.am (gen-ChangeLog): Add phony target to create the ChangeLog
file in the distribution tarball from the git commit messages - starting
from 2014 - and concatenating the file 'ChangeLog-2013'.
(dist-hook): Add the above new target as dependency.
* ChangeLog-2013: Add a newline at the top for nicer separation in
the concatenated ChangeLog file in the distribution tarball.
Bump Copyright year.
* import-gnulib.config (maintainer_modules): Add 'gitlog-to-changelog'
module.  Furthermore create an empty ChangeLog file to silence automake,
and set DO_NOT_WANT_CHANGELOG_DRIVER environment variable as we do not
want the import to fail if the changelog driver is not installed.
* build-aux/git-log-fix: Add rules to fix some git commit messages
during ChangeLog generation.
* build-aux/.gitignore: Add entry for 'gitlog-to-changelog'.
* build-aux/.cvsignore: Likewise.
* .gitignore: Likewise.
* README-hacking: Remove item to add a ChangeLog entry, and instead
mention to give a decent commit message.  In the command sequence for
a complete session, remove ChangeLog editing, too.
* doc/find-maint.texi (Release Information): Remove ChangeLog editing.
*

Signed-off-by: James Youngman <jay@gnu.org>
2014-08-25 12:34:01 +01:00
James Youngman
718bde6572 Revert the previous ChangeLog split and split at 2013 instead.
* ChangeLog-2013: Split the ChangeLog at 2013 rather than 2008;
hence, delete ChangeLog-2008.
* Makefile.am (EXTRA_DIST): Distribute ChangeLog-2013.
* .gitattributes: Use the ChangeLog merge driver for ChangeLog-2013.

This reverts commit c3e93017c2850cee2d2c15e03f66dedc1a2f445d.

Conflicts:
	ChangeLog
2014-08-23 14:20:14 +01:00
James Youngman
c3e93017c2 Prepare for later generating the ChangeLog file from the git log.
* ChangeLog-2008: Split this file out from the main ChangeLog file.
* Makefile.am (EXTRA_DIST): Distribute ChangeLog-2008.
* .gitattributes: Use the changelog merge driver for
ChangeLog-2008.
2014-08-23 11:53:44 +01:00
James Youngman
16e147b990 Don't use reserved identifiers in macro names; fix other code smells.
* build-aux/src-sniff.py (checkers): Check for #define directives
which use a macro name which is reserved.
(MakefileRegexChecker): New class which performs regex checks on
makefiles; this ensures that we don't check Makefile.in if we're
going to check Makefile.am anyway.
* lib/unused-result.h: Don't use a reserved identifier in the
macro name defined as the #include guard.
* locate/locatedb.h: Likewise.
* Makefile.am (findutils-check-smells): Don't check gnulib code.
* import-gnulib.sh (hack_gnulib_tool_output): Move the 'do' of a
for loop onto the line following the 'for' (instead of the same
line).
2013-03-31 20:25:49 +01:00
James Youngman
a917eb988f Bugfix to "make clean": do not delete header files.
* lib/Makefile.am (coverage-clean): Remove output files left
behind by gcc -fprofile-arcs -ftest-coverage by using $(RM) with a
glob pattern rather than a $(libfindtools_a_SOURCES.c=.gcno)
Makefile substitution, because the latter caused us to delete
header files entirely (their names do not end in .c).  This had
meant that it was impossible to compile findutils after "make
clean".  Bug report by David Gilbert.
* find/Makefile.am (coverage-clean): Likewise.
* xargs/Makefile.am (coverage-clean): Likewise.
* locate/Makefile.am (coverage-clean): Likewise.
* Makefile.am (coverage-clean): Likewise, but also do this in the
subdirectories whose Makefile.am files are generated by
gnulib-tool.
2013-03-24 14:09:14 +00:00
James Youngman
d09450a94c Manage gnulib as a git submodule.
* .gitmodules: New file; manage gnulib as a submodule.  For future
compatibility with the "bootstrap" script, keep the gnulib
submodule in the gnulib directory (instead of the gnulib-git
directory as before).  This means we need to find a new directory
for the output of gnulib-tool; we will use "gl" for that.
* import-gnulib.sh (do_checkout): Replace with do_submodule.
(do_submodule): initialise and configure the gnulib module.
(main): call do_submodule instead of do_checkout.  Don't call
move_cvsdir, it's obsolete.
(move_cvsdir): delete
* Makefile.am (SUBDIRS): Rename gnulib to gl.
(ACLOCAL_AMFLAGS): Likewise.
(findutils-check-smells): Rename gnulib-git to gnulib.
* .gitignore: Rename gnulib to gl.
2011-05-30 02:00:23 +01:00
James Youngman
4923104db9 Move version number on to 4.5.7-git, so that we can make test releases.
* configure.ac: Update version number.
* NEWS: Likewise.
* Makefile.am (AUTOMAKE_OPTIONS): Return to "gnits" rules.

Signed-off-by: James Youngman <jay@gnu.org>
2010-03-31 22:31:20 +01:00
James Youngman
6dbe9ec453 Prepare for release of findutils-4.5.6b (replacing findutils-4.5.6).
* configure.ac: Update version number.
* NEWS: Update version number.
* Makefile.am: switch to 'gnu' option ('gnits' forbids the 'b' suffix).

Signed-off-by: James Youngman <jay@gnu.org>
2010-03-31 00:19:55 +01:00
James Youngman
1d7b0ac396 Remove obsolete regex.c copy fixup.
* Makefile.am (jy-regex-fix) Delete.
(dist-hook): Remove jy-regex-fix.

Signed-off-by: James Youngman <jay@gnu.org>
2009-03-10 01:01:58 +00:00
James Youngman
530e4a541d clean tool-versions.txt for 'make distclean'
Signed-off-by: James Youngman <jay@gnu.org>
2009-03-07 23:08:17 +00:00
James Youngman
89da37ea3b Provide more detailed help on how to work with the git sources.
Provide more detailed help on how to work with the git sources.
* README-CVS: Rename to README-hacking.
* README-hacking: Add more specific information about using topic
branches, test cases, documentation, coding standards and how to
submit patches.   Much of this is adapted from the files
README-hacking and HACKING in the coreutils source tree.
* Makefile.am: Generate tool-versions.txt, which is a list of the
--version outputs of the tools that the maintainer used to build a
release.
* NEWS: Mention these improvements.

Signed-off-by: James Youngman <jay@gnu.org>
2009-03-07 14:38:47 +00:00
James Youngman
6ba6fbaa96 Enabled GCC warnings for declarations after statements.
Enabled GCC warnings for declarations after statements.
* import-gnulib.config: Import the gnulib module 'warnings'
* configure.ac: Add GCC warning -Wdeclaration-after-statement.
* Makefile.am: Add AM_CFLAGS and set it to $(WARN_CFLAGS).
* find/Makefile.am, doc/Makefile.am, lib/Makefile.am: Likewise.
* locate/Makefile.am, xargs/Makefile.am: Likewise.

Signed-off-by: James Youngman <jay@gnu.org>
2009-03-04 11:07:50 +00:00
James Youngman
5dce9f443c Removed trailing whitespace.
Removed trailing whitespace.
* Makefile.am: Removed trailing white space.
* NEWS, build-aux/check-testfiles.sh, build-aux/src-sniff.py,
doc/Makefile.am, doc/find-maint.texi, doc/find.texi, find/Makefile.am,
find/defs.h, find/find.1, find/find.c, find/finddata.c, find/fstype.c,
find/ftsfind.c, find/parser.c, find/pred.c, find/tree.c, find/util.c,
import-gnulib.sh, lib/Makefile.am, lib/buildcmd.c, lib/buildcmd.h,
lib/dircallback.c, lib/dircallback.h, lib/extendbuf.c,
lib/extendbuf.h, lib/findutils-version.c, lib/findutils-version.h,
lib/forcefindlib.c, lib/gnulib-version.h, lib/listfile.c,
lib/modetype.h, lib/nextelem.c, lib/nextelem.h, lib/printquoted.c,
lib/printquoted.h, lib/qmark.c, lib/regexprops.c, lib/regextype.c,
lib/savedirinfo.c, lib/savedirinfo.h, lib/strspn.c, lib/wait.h,
lib/waitpid.c, locate/bigram.c, locate/code.c, locate/locate.1,
locate/locate.c, locate/locatedb.5, locate/locatedb.h,
locate/updatedb.1, locate/updatedb.sh, locate/word_io.c,
m4/findlib.m4, m4/nullsort.m4, m4/withfts.m4, xargs/xargs.1: Likewise.

Signed-off-by: James Youngman <jay@gnu.org>
2009-03-04 10:49:59 +00:00
James Youngman
2f0f45ff8f Check gnulib out with native git, rather than git-cvspserver. This fixes Savannah bug #21568, for the second time. 2007-11-29 11:07:19 +00:00
James Youngman
4b500c3ccf Comment that the regex.c fix needs to stay until we no longer support Automate-1.9 2007-11-25 11:41:01 +00:00
James Youngman
1c43fc92b5 Migrated from GPL version 2 to GPL version 3 2007-07-02 08:25:45 +00:00
James Youngman
d4112563f7 Enhancements to the code smell detector 2007-06-30 12:32:01 +00:00
James Youngman
0e690b5fe6 Fixed Savannah bug #19871 (spurious .R directives in the manual page for find) 2007-05-19 13:02:00 +00:00
James Youngman
e6adb9061f Fixes to ensure that 'make distcheck' works 2007-04-15 14:46:39 +00:00
James Youngman
4302a37c0a Use a better way of locating any exp files (or other test files) that are missing from the source archive generated by 'make dist' 2007-04-08 19:10:59 +00:00
James Youngman
e254e6a6f6 Also build the relevant gnulib unit tests 2007-03-03 22:42:17 +00:00