153 Commits
Author SHA1 Message Date
Paolo Bonzini 5a30fa2129 bump version number 4.2 v4.2 2009-05-11 09:05:08 +02:00
Paolo Bonzini af03c28be2 declare bool arguments as int instead to please AIX XLC
2009-04-30  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/execute.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.c: Declare bool arguments as int instead to please AIX XLC.
	* sed/utils.h: Declare bool arguments as int instead to please AIX XLC.
2009-04-30 10:47:30 +02:00
Paolo Bonzini 4381be08bd bump version v4.1f 2009-04-28 08:55:08 +02:00
Paolo Bonzini d42713f37e fix readin test properly
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Do not create homonymous links from builddir to srcdir.
	* testsuite/Makefile.tests: Create readin.in2 here.
	* testsuite/Makefile.am: Do not distribute it.
2009-04-28 08:55:08 +02:00
Paolo Bonzini f83ff94827 add rename module from gnulib
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Add rename.
	* gnulib: Update.

2009-04-27  Paolo Bonzini  <bonzini@gnu.org>
2009-04-28 08:55:07 +02:00
Paolo Bonzini 03c3b0f2dc XFAIL utf8 tests where appropriate
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: XFAIL UTF-8 tests where appropriate.
2009-04-28 08:55:07 +02:00
Paolo Bonzini f7e125b54d handle CRLF endings in the testsuite for mingw
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.tests: Handle CRLF endings for mingw.
2009-04-27 11:36:12 +02:00
Paolo Bonzini 8172184989 fixes after Bruno's testing
2009-04-27  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Link readin.in2 into builddir.
	* configure: Regenerate.
	* doc/Makefile.am: Do not distribute sed.html.  Do not update
	sed.texi if the output does not change.
	* sed/Makefile.am: Order libraries according to their dependencies.
	* sed/compile.c (get_openfile): Declare FAIL as int.
	* sed/sed.c: Avoid printf ("") if REG_PERL is not defined.
	* testsuite/eval.in2: Do not include in the repository.
	* testsuite/Makefile.am: Clean always eval.in2 and never readin.in2.
	* testsuite/Makefile.tests: Provide a default empty definition of TIME
	and remove rules for readin.in2.
2009-04-27 10:41:56 +02:00
Paolo Bonzini 9e971bab12 update gnulib prior to release 2009-03-31 10:02:59 +02:00
Paolo Bonzini ca7820220c fix macro redefinition warnings for bootstrap.sh
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* bootstrap.sh.in: Add __bool_true_false_are_defined.
	* bootstrap.sh: Regenerate.
	* basicdefs.h: Do not provide bool definitions for BOOTSTRAP at all.
2009-03-31 10:02:54 +02:00
Paolo Bonzini d0d16cec98 improve `sed --version' output
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (contact): New.
	(usage): From here.
	(main): Use it for `sed --version' too.

        * configure.ac: Point to GNU project mailing lists.
        * sed/sed.c (contact): Use PACKAGE_BUGREPORT.
        * testsuite/version.gin: Likewise.
        * testsuite/version.good: Regenerate.
        * doc/sed.1: Regenerate.

        * bootstrap.sh.in (PACKAGE_BUGREPORT): New.
        * bootstrap.sh: Regenerate.
2009-03-31 10:01:38 +02:00
Paolo Bonzini 694012c4e8 distribute utf8-3 and utf8-4 test files
2009-03-31  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.am: Distribute utf8-3 and utf8-4 test files.
2009-03-31 09:39:16 +02:00
Paolo Bonzini 6e42ecdb94 avoid failures on the utf8-[1234] tests
2009-02-17  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.tests: Rewrite rule for utf8-[1234].
	Reported by Ralf Wildenhues.
2009-02-17 10:36:14 +01:00
Paolo Bonzini ca37f7187e include homepage URL in help messages.
2009-02-17  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (usage): Print homepage URL.
	* testsuite/version.gin: Update.
2009-02-17 10:35:03 +01:00
Paolo Bonzini 5dd4f61f54 do not print the bug report address when --help is printed and exit status != 0
2009-01-28  Paolo Bonzini  <bonzini@gnu.org>

	* sed/sed.c (usage): Only print the bug report address for `sed --help'.
	(main): Print it for `sed --version' too.
	* testsuite/version.gin: Adapt.
	* testsuite/Makefile.tests: Refine help message test.
2009-01-28 08:54:04 +01:00
Paolo Bonzini 70341ff453 fix 2009-01-23 16:09:21 +01:00
Paolo Bonzini e476324a7b fix parsing of s commands for MBCS codes including \x5c
2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
	    Hideo AOKI <hideo.aoki.tk@hitachi.com>

	* sed/compile.c (match_slash): Fix MBCS behavior.
	* sed/sed.h (MBSINIT): New.
2009-01-23 15:30:43 +01:00
Paolo Bonzini a25af355ed remove memchr, memcmp, memmove compatibility code.
2009-01-20  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf, bootstrap.sh.in: Remove memchr, memcmp, memmove
	compatibility code.
	* gnulib: Update.
2009-01-20 10:20:38 +01:00
Paolo Bonzini e5e82af9ad update gnulib to fix two regex matcher bugs
2009-01-09  Paolo Bonzini  <bonzini@gnu.org>

	* tests/SPENCER.tests: Add testcases for glibc bugzilla 697.
2009-01-09 11:17:17 +01:00
Paolo Bonzini 12e758ad53 fix "x", "g", "G" commands with "sed -i" to match BSD sed
2009-01-05  Paolo Bonzini  <bonzini@gnu.org>

        * execute.c (read_pattern_space): Reset hold space at end-of-file
	if input->reset_at_next_file.
2009-01-05 17:01:36 +01:00
Paolo Bonzini 6ea4dbce16 fix configure.ac version number v4.1e 2009-01-04 14:38:29 +01:00
Ralf Wildenhues ed1c249d94 Let --posix turn off more GNU extensions.
2008-12-31  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	Let --posix turn off more GNU extensions.
	* sed/compile.c (mark_subst_opts): Turn off subst options i, I,
	s, S, x, X, m, and M in --posix mode.
	(compile_address): Disallow address modifiers, `FIRST~STEP',
	`ADDR1,+N', and `ADDR1,~N' in --posix mode.
	(compile_program): In --posix mode, do not accept e or z commands;
	do not accept text between an a, c, or i command and the following
	backslash; do not accept an argument to the l command.
2008-12-31 10:05:03 +01:00
Paolo Bonzini 559a106598 use gnulib's emulation for mb functions
2008-12-22  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Request modules emulating mb functions.
	* configure.ac: Do not look for mb functions here.
2008-12-22 11:26:19 +01:00
Paolo Bonzini b62309dbb9 switch to GFDL 1.3 2008-11-04 07:58:11 +01:00
Jim Meyering 51d634a52f switch to external gettext
2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
	    Jim Meyering  <meyering@redhat.com>

	* Makefile.am: Remove intl subdir.  Require Automake 1.10.
	* configure.ac: Remove useless macros, switch to external gettext.
	* lib/Makefile.am: Remove intl subdir from CPPFLAGS.
	* sed/Makefile.am: Remove intl subdir from CPPFLAGS.
2008-10-03 10:34:54 +02:00
Paolo Bonzini 74687e4bf7 sync with gnulib
2008-10-02  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-10-02 11:10:48 +02:00
Paolo Bonzini 4c2a929a92 sync autoboot with gnulib's build-aux/bootstrap
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot: Sync with gnulib's build-aux/bootstrap.
2008-09-29 11:50:53 +02:00
Paolo Bonzini 08e0519f43 use git submodules for gnulib 2008-09-29 11:37:23 +02:00
Paolo Bonzini d38fd83b62 add utf8 tests for commit 7f53c1c16e
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* testsuite/Makefile.am: Add the utf8-{1,2,3,4} tests.
	* testsuite/Makefile.tests: Add the utf8-{1,2,3,4} tests.
	* testsuite/runtest: Support skipping tests.
	* testsuite/utf8-1.good: New.
	* testsuite/utf8-1.inp: New.
	* testsuite/utf8-1.sed: New.
	* testsuite/utf8-2.good: New.
	* testsuite/utf8-2.inp: New.
	* testsuite/utf8-2.sed: New.
	* testsuite/utf8-3.good: New.
	* testsuite/utf8-3.inp: New.
	* testsuite/utf8-3.sed: New.
	* testsuite/utf8-4.good: New.
	* testsuite/utf8-4.inp: New.
	* testsuite/utf8-4.sed: New.
2008-09-29 10:54:15 +02:00
Paolo Bonzini 41e0cf2dac add `z' extension
2008-09-29  Paolo Bonzini  <bonzini@gnu.org>

	* BUGS: Document s/.*.// behavior with invalid multibyte sequences.
	* NEWS: Document `z' extension.
	* doc/sed-in.texi: Document both things.
	* sed/compile.c (compile_program): Recognize `z'.
	* sed/execute.c (execute_program): Execute `z'.
	* testsuite/Makefile.am: Add badenc test.
	* testsuite/Makefile.tests: Add badenc test.
	* testsuite/badenc.good: New.
	* testsuite/badenc.inp: New.
	* testsuite/badenc.sed: New.
2008-09-29 10:24:09 +02:00
Paolo Bonzini 07df2df3c2 update gnulib
2008-09-28  Paolo Bonzini  <bonzini@gnu.org>

	* basicdefs.h: Replace alloca cruft with alloca.h.
	* bootstrap.sh.in: Update for new gnulib.
	* bootstrap.sh: Update for new gnulib.
	* configure.ac: Move gnulib macros earlier.
	* sed/execute.c: Do not include acl.h when bootstrapping.
2008-09-28 18:47:58 +02:00
Paolo Bonzini de0346581a close input files if not in -i mode!
2008-08-27  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c (closedown): Close the input file!
2008-08-27 13:24:19 +02:00
Paolo Bonzini 48738553ce add m4/.gitignore file 2008-08-21 09:31:25 +02:00
Paolo Bonzini 6cf87d9ee7 add gl_DISABLE_THREADS to configure.ac
2008-08-20  Paolo Bonzini  <bonzini@gnu.org>

	* configure.ac: Add gl_DISABLE_THREADS.
2008-08-21 09:30:36 +02:00
Ralf Wildenhues 1023fa2712 drop leading whitespace from the info documentation
2008-08-20  Ralf Wildenhues  <ralf.wildenhues@gmx.de

	* doc/sed-in.texi: Drop leading whitespace where appropriate,
	do not use TABs.
	* doc/sed.texi: Regnerate.
2008-08-21 09:29:48 +02:00
Paolo Bonzini 21a4305c72 gnulib removed strverscmp.c
2008-08-19  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Do not include strverscmp.c.
2008-08-20 10:09:13 +02:00
Paolo Bonzini 3d4e73054d remove northpark.edu address for sed FAQ
2008-07-21  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Remove northpark.edu address for sed FAQ.
	* doc/sed.texi: Regenerate.
2008-07-21 19:25:48 +02:00
Paolo Bonzini 17a36e7d1f update .gitignore files 2008-07-11 15:21:33 +02:00
Paolo Bonzini 3a41e1b2fe clarify description of ^ and $ in the manual
2008-07-10  Paolo Bonzini  <bonzini@gnu.org>

        * doc/sed-in.texi: Make the description of ^ and $ more precise.
        * doc/sed.texi: Regenerate.
2008-07-11 14:12:23 +02:00
Paolo Bonzini 5204cc981d don't hardcode usage of prototypes on SunStudio
2008-06-04  Vladimir Marek  <vladimir.marek@sun.com>

	* basicdefs.h: Don't hardcode usage of prototypes on SunStudio.
2008-06-04 17:00:31 +02:00
Paolo Bonzini b26af57c7c update for newer gnulib
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* autoboot.conf: Update for newer gnulib.
2008-05-15 09:54:55 +02:00
Paolo Bonzini f38b9e6336 update bootstrap.sh
2008-05-15  Paolo Bonzini  <bonzini@gnu.org>

	* bootstrap.sh.in: Define bool, true, false.  Reported by
	Jason Stover.  Adjust for gnulib changes.
	* bootstrap.sh: Regenerate.
2008-05-14 21:32:36 +02:00
Paul Eggert eb8496d9de treat 's&foo&\&&' compatibly with traditional 'sed'
2008-04-24  Paul Eggert  <eggert@twinsun.com>

	* sed/compile.c (match_slash): Treat 's&foo&\&&' compatibly with
	traditional 'sed'.
	* testsuite/bsd.sh: Add test case for this.
	* testsuite/bsd.good: Add test case output.
2008-04-24 16:22:56 +02:00
Paolo Bonzini f11ba2aec3 fix bug with \& in POSIX mode, reported by Samuel Colin
2008-04-24  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c (setup_replacement): Fix bug with \& in POSIX mode.
2008-04-24 16:22:56 +02:00
Paolo Bonzini 6b96a347ca add .gitattributes file 2008-04-10 11:14:38 +02:00
Paolo Bonzini 30bdbe1e61 Parenthesize assignment used as "for-loop" expression.
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/execute.c (open_next_file, get_backup_file_name): Avoid
	warnings from gcc.
2008-01-16 15:42:04 +01:00
Jim Meyering 1d66f2f7f6 sed/compile.c: Avoid uninitialized variable usage in snarf_char_class
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/compile.c (snarf_char_class): Reverse order of conjuncts
	so that "delim" is not used uninitialized.
2008-01-16 14:54:13 +01:00
Jim Meyering 0dd01dfb93 sed/utils.c: Remove declaration of unused local, "fd".
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/utils.c (panic): Remove declaration of unused local, "fd".
2008-01-16 14:52:54 +01:00
Jim Meyering fb871b6b56 sed/execute.c: Avoid warnings from gcc, avoid shadowing global "pipe".
2008-01-16  Jim Meyering  <meyering@redhat.com>

	* sed/execute.c (open_next_file, get_backup_file_name): Avoid
	warnings from gcc.  Avoid shadowing global "pipe".
2008-01-16 14:52:48 +01:00
Paolo Bonzini dbd7863bc7 autoboot.conf (gnulib_modules): Add stat-macros and pathmax. 2008-01-16 14:49:59 +01:00