summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* build: avoid "make distcheck" failure and distracting diagnosticsJim Meyering2009-08-151-5/+5
| | | | | | * testsuite/check.mk (built_programs): Rewrite so that it works. (TESTS_ENVIRONMENT): Use $$f, not $$tst. The latter included a $(srcdir)/ prefix that was fatal in the non-srcdir build case.
* rename hash.? to idu-hash.? to avoid conflict with gnulib's hash.hJim Meyering2009-08-158-9/+9
| | | | | | | | | | | | | Now that gnulib's exclude module uses gnulib's hash module, which includes a hash.h file, idutils' use of a hash.h file conflicted. Rename the one here in idutils: * libidu/idu-hash.c: Rename from hash.c. * libidu/idu-hash.h: Rename from hash.h. * libidu/idfile.h: Reflect renaming. * libidu/idread.c: Likewise. * libidu/idwrite.c: Likewise. * src/mkid.c: Likewise. * libidu/Makefile.am: Likewise.
* build: use gnulib's update-copyright moduleJim Meyering2009-08-151-0/+1
| | | | * bootstrap.conf (gnulib_modules): Add update-copyright.
* build: use gnulib's getopt-gnu module (getopt is now deprecated)Jim Meyering2009-08-151-1/+1
| | | | | * bootstrap.conf (gnulib_modules): Gnulib's getopt module is now deprecated; use the new, preferred name, getopt-gnu.
* build: update from gnulibJim Meyering2009-08-151-0/+0
| | | | * gnulib: Update submodule to latest.
* build: avoid a legitimate warning exposed by newer gccJim Meyering2009-08-151-1/+0
| | | | | * libidu/scanners.c (language_save_arg): Remove decl of unused static local, horizontal_space.
* tests: run the latest testJim Meyering2009-08-153-2/+4
| | | | | | * testsuite/Makefile.am (EXTRA_DIST): Add mkid-langopt. * NEWS: Tweak wording. * testsuite/mkid-langopt: Add a comment.
* mkid: avoid segfault with "-l OPT"Pedro J. Ruiz Lopez2009-08-134-8/+23
| | | | | | | | | * libidu/scanners.c: languages_0[] is not const anymore, since this would make impossible to set lang->lg_argv * libidu/scanners.c: language_save_arg now manages language options with zero or one argument. * doc/idutils.texi: update to reflect the behavior of mkid "-l" option. * testsuite/mkid-langopt: new test program.
* maint: ignore *.1 man pagesJim Meyering2009-07-041-0/+1
| | | | * .gitignore: Ignore man/*.1.
* build: require/use newer automakeJim Meyering2009-07-041-1/+1
| | | | | * configure.ac: require automake-1.11. Enable color-tests and parallel-tests options.
* tests: remove now-unnecessary build-aux/check.mkJim Meyering2009-07-042-285/+1
| | | | | * build-aux/check.mk: Remove file. * testsuite/check.mk: Don't include build-aux/check.mk.
* tests: avoid a false-positive failureJim Meyering2009-07-041-2/+2
| | | | | | * testsuite/consistency: Manually remove single_file_token_bug.c from the list of files to be compared, since it would provoke a false positive.
* tests: update CuTmpdir.pm from coreutilsJim Meyering2009-07-041-11/+13
| | | | * testsuite/CuTmpdir.pm: Update from coreutils.
* mkid, xtokid: read and process --files0-from= input a name at a time,Jim Meyering2009-07-044-97/+160
| | | | | | | | | | | | rather than by reading the entire input into memory and *then* processing each file name. * src/mkid.c: Include "argv-iter.h", not "readtokens0.h". (main): Rewrite to use argv-iter. * src/xtokid.c: Likewise. Include <assert.h>. * bootstrap.conf (gnulib_modules): Add argv-iter. Remove readtokens0. * libidu/iduglobal.h (STREQ): Define. (bad_cast): Define.
* remove wc-related code that doesn't apply hereJim Meyering2009-07-043-27/+0
| | | | | | * src/mkid.c: Don't handle a file name of "-" specially. * src/xtokid.c: Likewise. * testsuite/files0-from: Don't test for it.
* tests: add testing framework, and tests for the new optionJim Meyering2009-07-0411-9/+1260
| | | | | | | | | | | | | | | | | * NEWS (New features): Mention the new option. * src/mkid.c (main): Adjust a diagnostic. * src/xtokid.c (main): Adjust a diagnostic. * bootstrap.conf (gnulib_modules): Add perl and posix_shell * build-aux/check.mk: New file, from coreutils. * testsuite/Coreutils.pm: Likewise. * testsuite/CuTmpdir.pm: Likewise. * testsuite/check.mk: Likewise. * testsuite/envvar-check: Likewise. * testsuite/files0-from: New test, based on one from coreutils. * testsuite/Makefile.am (TESTS): Add files0-from. (TESTS_ENVIRONMENT): Remove definition. Now it's in check.mk. (EXTRA_DIST): Add Coreutils.pm CuTmpdir.pm envvar-check and check.mk. Include $(srcdir)/check.mk.
* mkid, xtokid: accept a new option --files0-from=FILEPedro J. Ruiz Lopez2009-07-044-39/+230
| | | | | | | | | * bootstrap.conf (gnulib_modules): Add quote and readtokens0. * doc/idutils.texi: Document the option. * src/mkid.c (usage, FILES0_FROM_OPTION, long_options, help_me) (main): Implement. * src/xtokid.c (usage, FILES0_FROM_OPTION, long_options, help_me) (main): Likewise.
* gnulib: update to latest, to get argv-iterJim Meyering2009-07-041-0/+0
|
* build: update from coreutilsJim Meyering2009-06-305-126/+253
| | | | | | | * README-hacking: Update from coreutils. * bootstrap.conf: Likewise. * bootstrap: Likewise. * dist-check.mk: Likewise.
* Fixed bug #22154: --default-lang does nothingPedro J. Ruiz Lopez2009-06-161-0/+16
| | | | * libidu/scanners.c: set_default_language function implemented.
* maint: add const attribute to a few declarationsJim Meyering2009-06-073-9/+9
| | | | | | * libidu/hash.c (hash_print_stats, hash_dump): Add const. * libidu/hash.h: Likewise. * src/mkid.c (scan_files): Likewise.
* build: avoid warning from newer gccJim Meyering2009-06-071-0/+1
| | | | * configure.ac: Turn off -Wunsafe-loop-optimizations.
* build: update from gnulibJim Meyering2009-06-071-0/+0
| | | | * gnulib: Update submodule to latest.
* elisp: use `read-shell-command' in `gid'Ludovic Courtès2009-05-181-2/+2
| | | | | * lisp/idutils.el (gid): Use `read-shell-command' instead of `read-string', to allow for completion.
* maint: cfg.mk: remove now-unnecessary gnulib_dir definitionJim Meyering2009-05-171-4/+0
| | | | | * cfg.mk (gnulib_dir): Remove definition, now that gnulib's maint.mk provides the default we want.
* build: update from gnulib, for rename.m4 fix, improved tests, etc.Jim Meyering2009-05-171-0/+0
| | | | * gnulib: Update submodule to latest.
* build: adjust warningsJim Meyering2009-05-171-6/+2
| | | | | * configure.ac: Enable a few warning options that didn't need to be disabled; disable -Wlong-long (for latest gcc snapshot).
* maint: remove unused fileJim Meyering2009-05-171-11/+0
| | | | * m4/extra_dist.sh: Remove now-unused file.
* clean-up: use proper typesJim Meyering2009-04-301-3/+4
| | | | * src/fid.c (get_file_index): Use size_t for lengths, not int.
* avoid a legitimate -Wstrict-overflow warningJim Meyering2009-04-302-3/+3
| | | | | * libidu/scanners.h (log_8_member_files): Change type from int to size_t. * libidu/scanners.c: Likewise.
* build: suppress more warningsJim Meyering2009-04-305-10/+9
| | | | | | | | | * src/fid.c (usage): Declare with __noreturn__ attribute. * src/fnid.c (usage): Likewise. * src/lid.c (usage): Likewise. * src/mkid.c (usage): Likewise. * src/xtokid.c: (usage): Likewise. * src/mkid.c (sum_files): Remove unused macro.
* build: suppress warnings about ignored return value from fread/fwriteJim Meyering2009-04-303-5/+10
| | | | | | | * libidu/idwrite.c: include "ignore-value.h". (io_write): Ignore fwrite return value. * libidu/idread.c: Likewise for fread. * bootstrap.conf (gnulib_modules): Add ignore-value.
* build: remove unused macrosJim Meyering2009-04-301-5/+1
| | | | * libidu/scanners.c (ISSPACE, WS): Remove unused macros.
* build: avoid a warningJim Meyering2009-04-301-2/+2
| | | | * libidu/idfile.c (sizeof_idhead): Avoid old-style function definition.
* build: remove unused macrosJim Meyering2009-04-301-4/+1
| | | | | * libidu/idread.c (TOK_COUNT_ADDR): Remove unused macro. (TOK_HITS_ADDR): Likewise.
* build: enable new compiler warning optionsJim Meyering2009-04-302-3/+5
| | | | | | | * src/Makefile.am (AM_CFLAGS): Define to $(WARN_CFLAGS) $(WERROR_CFLAGS). * libidu/Makefile.am (AM_CPPFLAGS): Remove bogus -I$(top_builddir)/intl (AM_CFLAGS): Define to $(WARN_CFLAGS) $(WERROR_CFLAGS). * src/Makefile.am (AM_CPPFLAGS): Remove bogus -I.../intl
* build: address automake warningJim Meyering2009-04-291-2/+2
| | | | | * lib/Makefile.am (AM_CFLAGS): Increment, rather than assigning, so as not to override settings from just-included gnulib.mk.
* build: accommodate maint.mk, now that it's pulled from gnulibJim Meyering2009-04-293-1/+139
| | | | | | | * dist-check.mk: New file, from coreutils. Was part of maint.mk. * cfg.mk (old_NEWS_hash): Include $(srcdir)/dist-check.mk. Remove trailing " -", to align with new check in maint.mk. * Makefile.am (EXTRA_DIST): Add dist-check.mk.
* maint: enable many gcc warningsJim Meyering2009-04-292-0/+64
| | | | | | | | | * bootstrap.conf (gnulib_modules): Add warnings and manywarnings. * configure.ac: Use gl_MANYWARN_ALL_GCC, and exclude options I don't want or that provoke too many warnings. (WARN_CFLAGS, WERROR_CFLAGS): Define. (lint, GNULIB_PORTCHECK): Define. (_FORTIFY_SOURCE): Define to 2.
* * .cvsignore: Remove now-unused file.Jim Meyering2009-04-291-8/+0
|
* build: use maint.mk from gnulibJim Meyering2009-04-293-895/+3
| | | | | | | * maint.mk: Remove file. Now it's generated. * .gitignore: Ignore it. * bootstrap.conf (gnulib_modules): Add maintainer-makefile. Remove obsolete modules.
* maint: use a git submodule for gnulibJim Meyering2009-04-292-0/+3
| | | | | | * .gitmodules: New file, to track gnulib. * gnulib: New file, created by running this: git submodule add git://git.sv.gnu.org/gnulib.git gnulib
* * configure.ac (AM_INIT_AUTOMAKE): Require automake-1.10b or newer.Jim Meyering2009-04-291-1/+1
|
* build: make automake's silent-rules option the defaultJim Meyering2009-04-271-0/+1
| | | | | | * configure.ac (AM_SILENT_RULES): Use this, with it's "yes" argument. Those who want verbose build output may configure with --disable-silent-rules or use "make V=1".
* * maint.mk: sync from coreutilsJim Meyering2009-03-211-14/+18
|
* maint.mk: update from coreutilsJim Meyering2009-03-182-3/+8
| | | | | * maint.mk: Sync. * cfg.mk (manual_title): Define.
* * cfg.mk (old_NEWS_hash): Update.Jim Meyering2009-03-021-1/+1
|
* maint.mk: update from coreutilsJim Meyering2009-03-023-230/+212
| | | | | | | * maint.mk: Modernize (sc_tight_scope): Move this rule to... * idutils/cfg.mk (sc_tight_scope): ...here. * .x-sc_require_config_h_first: New file.
* * doc/idutils.texi: Update copyright year.Jim Meyering2009-03-021-1/+2
|
* * configure.ac: Use dist-xz rather than dist-lzma.Jim Meyering2009-03-021-1/+1
|