44 Commits
Author SHA1 Message Date
Paolo Bonzini 4381be08bd bump version 2009-04-28 08:55:08 +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 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 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 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
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 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 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 34b083cdc5 document q/Q in sed man page, improve html doc generation
2007-10-25  Paolo Bonzini  <bonzini@gnu.org>
	    Mike Frysinger   <vapier@gentoo.org>

	* doc/sed.x (q, Q): Document argument.
	* configure.ac: Remove texi2html checks.
	* doc/Makefile.am: Remove rules for sed.html, always distribute it.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-97
2008-01-09 16:12:29 +01:00
Paolo Bonzini 235425fdd4 document what's a GNU extension in sed(1)
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-95
2008-01-09 16:12:27 +01:00
Paolo Bonzini c1067081c5 switch to GPLv3
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-94
2008-01-09 16:12:27 +01:00
Paolo Bonzini 068afd076e bump version to 4.1c and fix some warnings
2006-12-29  Paolo Bonzini  <bonzini@gnu.org>

	* sed/compile.c: Fix warnings.
	* sed/execute.c: Fix warnings.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-91
2008-01-09 16:12:25 +01:00
Paolo Bonzini a9f3dc2a2a document --follow-symlinks
2006-12-16  Paolo Bonzini  <bonzini@gnu.org>

	* doc/sed-in.texi: Document --follow-symlinks.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-86
2008-01-09 16:12:21 +01:00
Paolo Bonzini f6aa842534 bump version number to 4.1b
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-85
2008-01-09 16:12:21 +01:00
Paolo Bonzini ba68fb42b8 --posix disables all extensions to regular expressions
2006-12-15  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Disable all extensions on --posix.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-84
2008-01-09 16:12:20 +01:00
Paolo Bonzini ca83026c92 autogenerate version.good within configure
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-81
2008-01-09 16:12:18 +01:00
Paolo Bonzini 793f376962 merge documentation fixes from debian ssed package
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-80
2008-01-09 16:12:17 +01:00
Paolo Bonzini cba6413f07 finish gnulib conversion -- upgrade bootstrap and a few details
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-79
2008-01-09 16:12:16 +01:00
Paolo Bonzini ac9a20b3fb gnulibify and add ACL support
2006-09-24  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c: Support ACLs.
	* lib/utils.c: Move...
	* sed/utils.c: ... here, and remove xmalloc.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-74
2008-01-09 16:12:13 +01:00
Paolo Bonzini 3a8e165ab0 treat cygwin CR/LF correctly (and by design, not by chance)
2006-08-03  Paolo Bonzini  <bonzini@gnu.org>
            Corinna Vinschen  <vinschen@redhat.com>

        * lib/getline.c (getline): Remove Windows special casing.
        * lib/utils.c (register_open_file, ck_fdopen): New.
        (ck_fopen, ck_mkstemp): Use register_open_file.
        * lib/utils.h (ck_fdopen): New.
        * sed/execute.c (open_next_file): Reopen stdin.
        * sed/sed.h (read_mode): New.
        * sed/sed.c (read_mode): New.
        (main): Set it on --binary.
        (usage): Document --binary.
        * sed/compile.c (get_openfile): Change second argument to char
        and turn it into a string within the function.  Adjust callers.
        * sed/execute.c (dump_append_queue, open_next_file): Use it
        as mode for ck_fopen.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-71
2008-01-09 16:12:11 +01:00
Paolo Bonzini 760bf669e6 do not mention Estonian locale in BUGS
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-67
2008-01-09 16:12:08 +01:00
Paolo Bonzini 3cfe7fdf8a Fix compilation on non-GCC compilers, update po files
2006-05-15  Hans-Bernhard Bröker <broeker@physik.rwth-aachen.de>

	* sed/basicdefs.h (OB_MALLOC): Turn VCAST into void * cast.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-66
2008-01-09 16:12:07 +01:00
Paolo Bonzini 6ed57b0429 document that sed -i breaks links
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-65
2008-01-09 16:12:06 +01:00
Paolo Bonzini 034190bd22 fix for freebsd sed
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-64
2008-01-09 16:12:05 +01:00
Paolo Bonzini ef1ea7f8bb add install_sh definition to intl/po
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-61
2008-01-09 16:12:03 +01:00
Paolo Bonzini de400b3b34 fix `turn filenames into lowercase' example
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-60
2008-01-09 16:12:02 +01:00
Paolo Bonzini 811c3446c6 merge with glibc regex
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-59
2008-01-09 16:12:01 +01:00
Paolo Bonzini a8485beddc fix sed faq address
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-58
2008-01-09 16:12:00 +01:00
Paolo Bonzini 6d02437ad8 fix typo in docs/Makefile.am
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-56
2008-01-09 16:11:58 +01:00
Paolo Bonzini d6bda34b13 provide a better name for the man page
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-53
2008-01-09 16:11:56 +01:00
Paolo Bonzini 9015803ab0 fix 0~2, signaled by Guglielmo Bondioni
2005-08-30  Paolo Bonzini  <bonzini@gnu.org>

	* sed/execute.c (reset_addresses): Never activate ADDR_IS_NUM_MOD
	addresses.
	* testsuite/modulo.good, testsuite/modulo.inp, testsuite/modulo.sed:
	New.
	* testsuite/Makefile.tests: Add new testcase.
	* testsuite/Makefile.am: Add new testcase.
	* testsuite/Makefile.in: Regenerate.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-52
2008-01-09 16:11:55 +01:00
Paolo Bonzini bdbfe6d711 merge regex with glibc and adjust doc/.arch-inventory
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-51
2008-01-09 16:11:54 +01:00
Paolo Bonzini 584e5cedc2 more updates to the FSF address
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-50
2008-01-09 16:11:53 +01:00
Paolo Bonzini 07e543c45f update FSF address
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-49
2008-01-09 16:11:52 +01:00
Paolo Bonzini 911678b24e make --enable-html enable building .html files, not just installing
2005-02-01  Paolo Bonzini  <bonzini@gnu.org>

	* doc/Makefile.am: Don't enable MAKEINFO_HTML and TEXI2HTML_HTML
	rules unless BUILD_HTML.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-39
2008-01-09 16:11:45 +01:00
Paolo Bonzini f6330a3c93 finishing touches :-) for 4.1.4
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-37
2008-01-09 16:11:43 +01:00
Paolo Bonzini b48e80e8ad prepare for 4.1.4 release
2005-01-25  Paolo Bonzini  <bonzini@gnu.org>

	* sed/regexp.c: Fix building on GCC 2.95 and earlier.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-35
2008-01-09 16:11:42 +01:00
Paolo Bonzini 5135bf4814 do not use leftmost-longest matching for addresses.
2004-12-26  Paolo Bonzini  <bonzini@gnu.org>

	Do not use leftmost-longest matching for addresses.

	* NEWS: Add a note about this.
	* testsuite/recall2.good, testsuite/recall2.inp,
	testsuite/recall2.sed: New test.
	* testsuite/Makefile.am, testsuite/Makefile.tests: Add the
	recall2 test.
	* sed/sed.h (struct regex): New.
	(struct addr, struct subst, compile_regex, match_regex,
	release_regex): Use it instead of regex_t.
	* sed/compile.c (compile_program): Update for new meaning of
	the third parameter of compile_regex.
	* sed/execute.c (do_subst): Pass less conservative value to
	the regsize parameter of match_regex.
	* sed/regexp.c (compile_regex_1): New, extracted out of
	compile_regex.  The third parameter, needed_sub, now includes
	\0 (so 10 means that \0 .. \9 are needed).  Pass RE_NO_SUB
	if needed_sub is zero.
	(compile_regex): Accept a struct regex instead of a regex_t.
	Save the regular expression's text.
	(match_regex): Accept a struct regex instead of a regex_t.
	Recompile the pattern if it was compiled with RE_NO_SUB.
	(release_regex): Accept a struct regex instead of a regex_t.

	* doc/Makefile.am: Generate sed.texi correctly when
	building outside srcdir.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-33
2008-01-09 16:11:40 +01:00
Paolo Bonzini 84342a5b93 commit autogenerated sed.texi.
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-32
2008-01-09 16:11:40 +01:00
Paolo Bonzini bc7f50307a warn against localization issues
2004-12-26  Paolo Bonzini  <bonzini@gnu.org>

	* BUGS: Add section about [a-z] matching uppercase characters,
	and other locale issues.
	* doc/sed-in.texi [!PERL]: Likewise.

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-31
2008-01-09 16:11:39 +01:00
Paolo Bonzini c27b981aba add tagging conventions and fix configure for gettext 0.14
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-15
2008-01-09 16:10:50 +01:00
Paolo Bonzini 123b874f30 fix out of srcdir build
git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--patch-7
2008-01-09 16:10:45 +01:00
Paolo Bonzini 9c9919efe2 initial import
(automatically generated log message)

git-archimport-id: bonzini@gnu.org--2004b/sed--stable--4.1--base-0
2004-10-20 21:42:31 +00:00