Commit graph

26 commits

Author SHA1 Message Date
wen
310a6ed9ae Update to 1.17
Upstream changes:
2021-01-06  Antonio Diaz Diaz  <antonio@gnu.org>

        * Version 1.17 released.
        * main_loop.c (exec_global): Make commands 'q' and 'Q' work in a
          global command. (Reported by J. A. Harris).
        * main.c: New option '-E, --extended-regexp'.
          (Suggested by Shawn Wagner).
        * io.c (read_stream_line, write_stream): Add filename parameter.
          Print the file name in case of error. (Reported by Dan Jacobson).
        * global.c: Integrate 'resize_line_buffer' into 'set_active_node'.
        * buffer.c: Integrate 'resize_undo_buffer' into 'push_undo_atom'.

2020-02-20  Antonio Diaz Diaz  <antonio@gnu.org>

        * Version 1.16 released.
        * regex.c (line_replace): Accept 's/^/#/g' as valid.
          (Reported by Bjoern Wibben).
        * main_loop.c: Remove length limit of prompt string.
          (Reported by Tim Chase).
        * main.c: Set a valid invocation_name even if argc == 0.
        * ed.texi: Extended operators depend on regex implementation.
          (Reported by Brian Zwahr).
        * ed.texi: Several fixes and improvements.

2019-01-01  Antonio Diaz Diaz  <antonio@gnu.org>

        * Version 1.15 released.
        * io.c (print_line): Make command 'l' print '\\' before every
          '$' within the text. (Reported by Ori Avtalion).
        * main_loop.c (extract_addresses): Fix address ',,' to mean '$,$'
          instead of '1,$'. (Reported by Matthieu Felix).
        * regex.c (extract_replacement): Allow newlines even if global.
        * main_loop.c (exec_command): Make command 'c' reject address 0.
        * ed.texi: Minor fixes.
        * configure: Accept appending to CFLAGS, 'CFLAGS+=OPTIONS'.

2017-02-22  Antonio Diaz Diaz  <antonio@gnu.org>

        * Version 1.14.2 released.
        * main.c (show_strerror) Revert to using '!scripted' instead of
          'verbose' to enable diagnostics.
2022-01-21 02:27:04 +00:00
nia
f3065cf92e editors: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
2021-10-26 10:21:24 +00:00
nia
fb16529264 editors: Remove SHA1 hashes for distfiles 2021-10-07 13:47:35 +00:00
rillig
b686dd9180 all: migrate several HOMEPAGEs to https
pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
2020-01-18 23:30:43 +00:00
wiz
5efbd978ff Updated ed to 1.14.1.
Changes in version 1.14:

Version 1.14 is the largest bug hunt ever attempted in GNU ed. Other
goals of version 1.14 are to complete the documentation and to remove
any gratuitous incompatibilities with the POSIX standard. Thanks to Ori
Avtalion for initiating all this with a couple bug reports. ;-)

Byte counts, informative messages, command error messages, and the '?'
and '!' prompts are now written to stdout instead of to stderr. The
standard error (stderr) is now used only for diagnostic messages.

The current address is now correctly set to the addressed line after an
empty insert command.

Fixed inconsistent behavior of the substitute command. It incorrectly
reported 'Invalid pattern delimiter' when the two last delimiters were
omitted after a null regular expression. Now it consistently reports
'Missing pattern delimiter' if the two last delimiters are omitted after
any regular expression (null or not).

's/a/%' has been fixed. It incorrectly replaced 'a' with '%' instead of
using the replacement from the last substitution.

An infinite loop, happening when EOF was found in the middle of a
replacement string, has been fixed.

Ed no longer accepts newlines in the replacement of a 's' command if it
is part of the command list of a global command, because in this case
the meaning of the newline becomes ambiguous. For the same reason, the
last delimiter can't be omitted if the 's' command is not the last
command in the command list.

The substitute command now correctly sets the current address to the
address of the last line on which a substitution occurred, and leaves it
unchanged if no substitution is performed.

A bug in the calculation of address offsets has been fixed. '3 ---- 2'
was calculated as address -2 instead of the correct address 1.

Address ranges with the first address omitted are now accepted.

The current address is now correctly set to the addressed line (or to
the new last line if at EOF) after an empty replacement text in the
change command.

Repeated print suffixes are now rejected. It has been documented that ed
allows any combination of non-repeated print suffixes and combines their
effects.

The substitute command now accepts suffixes in any order.

The 'repeat substitution' command now rejects multiple count suffixes.

The 'p' suffix of the 'repeat substitution' command now toggles all the
print suffixes of the last substitution.

End of file on standard input now behaves as a 'q' command.

The modified status is no longer cleared after writing the buffer to the
standard input of a shell command. (Reported by Jérôme Frgacic).

The descriptions of the 'a', 'c', 'e', 'g', 'i', 'j', 'k', 'm', 'q',
'r', 's', 'u' and 'w' commands in the manual have been fixed.

Most tests in the testsuite have been improved. Bug reporting has been
simplified; only the failed logs and results are kept in the test
directory, which can then be (tarred, compressed, and) attached to the
bug report.
2017-01-12 11:20:02 +00:00
bsiegert
be84e2e99b Update GNU ed to 1.13.
2016-01-24  Antonio Diaz Diaz  <antonio@gnu.org>

        * Version 1.13 released.
        * buffer.c (put_sbuf_line): Fixed a memory leak.
        * io.c (read_file, write_file): Close file on error.
          (Both issues reported by Cédric Picard).
2016-03-05 14:43:14 +00:00
agc
411fefe420 Add SHA512 digests for distfiles for editors category
Problems found with existing distfiles:
	distfiles/javascript-2.1b1.el
	distfiles/yEd-3.14.2.zip
No changes made to the javascript-mode or yEd distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
2015-11-03 03:32:14 +00:00
bsiegert
e9fdf4cbe7 Update ed to 1.12. From Ben Gergely in mail to pkgsrc-users.
* main_loop.c (exec_command): Return ERR if 'system' can't
          create a shell process.
        * main_loop.c (main_loop): Flush stdout/stderr before reading a
          new command.
        * buffer.c (put_sbuf_line): Added size parameter.
        * ed.1: Man page is now generated with 'help2man'.
        * ed.1: All command-line options are now documented in the man page.
        * Restored copyright notices of Andrew L. Moore. It seems Andrew
          granted some permissions but never assigned copyright to the FSF.
        * buffer.c (append_lines): Fixed 'a', 'c' and 'i' commands.
          (When used in a global command list, the commands following
          them in the list were ignored).
        * main_loop.c (exec_command): Fixed 'e' command.
          (It quitted when invoked a second time with a modified buffer).
        * main.c: Added new option '--restricted'.
        * 'red' has been converted to a script invoking 'ed --restricted'.
        * Description of ed in the manual has been changed.
        * testsuite: Modified some tests and removed obsolete posix tests.
        * main_loop.c: 'ibufp' variable made local to main_loop.
        * Defined type bool to make clear which functions and variables
          are Boolean.
        * Added 'const' to all pointer declarations accepting it.
        * regex.c (replace_matching_text): Make se_max an enum.
        * signal.c: Include termios.h
        * Converted C99 style comments '//' to C89 style comments '/* */'.
        * ed.texinfo: Fixed an erratum.
        * Changed copyright holder from Andrew, Antonio to the FSF.
        * buffer.c, main_loop.c: Undo now restores the modified status.
        * regex.c (search_and_replace): Fixed a race condition with user
          interrupt.
        * signal.c: Added functions resize_line_buffer and
          resize_undo_buffer to definitively fix the aliasing warnings.
        * Some minor corrections have been made to the manual.
        * carg_parser.c (ap_resize_buffer): An aliasing related segfault
          that only occurs when overoptimizing with GCC on some
          architectures (alpha, sparc) has been (hopefully) fixed.
        * signal.c (resize_buffer): Likewise.
        * configure: Locale has been fixed to 'C'.
        * Makefile.in: Man page is now installed by default.
        * 'make install-info' should now work on Debian and OS X.
        * ed.texinfo: License updated to GFDL version 1.3 or later.
2015-07-25 16:45:12 +00:00
jperkin
cefff77d66 Add PKGGNUDIR support. 2012-12-06 11:38:19 +00:00
asau
fae34ba053 Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days. 2012-10-03 11:43:30 +00:00
cheusov
ee3baffb7c Add symlink to gnu/man/man1/ed.1
++pkgrevision
2012-06-02 07:10:57 +00:00
cheusov
e17f55d7f8 Remove GNU_PROGRAM_PREFIX variable (discussed in pkgsrc-users@).
All utilities are installed with a prefix 'g'. Symlinks with original
names are created in ${PREFIX}/gnu/bin.

++pkgrevision

Add LICENSE
2012-05-29 21:51:15 +00:00
joerg
219508ecab DESTDIR support by simplification. 2010-01-27 18:20:43 +00:00
reed
4da3259f47 Update to 1.1
This includes a security fix.

From ChangeLog:

2008-10-14  Antonio Diaz  <ant_diaz@teleline.es>

	* Version 1.1 released.
	* configure: Quote arguments stored in config.status.

2008-08-21  Antonio Diaz  <ant_diaz@teleline.es>

	* Version 1.0 released.
	* configure: Added option `--program-prefix'.
	* signal.c (strip_escapes): Buffer overflow fixed.
	* signal.c (resize_buffer): Pointer aliasing warning fixed.
2008-11-04 14:27:37 +00:00
reed
265e385f92 Update to ed-0.9.
Both patches changed. I made new patches to support being able
to install to program_prefix. (I supplied these upstream too.)

From change log:

2008-02-24  Antonio Diaz
	* Version 0.9 released.
	* signal.c (sighup_handler): Return 0 if no error.
	* Arg_parser updated to 1.1.

2007-08-18  Antonio Diaz
	* Version 0.8 released.
	* check.sh: Testsuite exits unsuccesfully in case of error.
	* ed.1: Fixed some minor problems in the manual page.
	* ed.texinfo: Added 21kB of legalese (fdl.texinfo).

2007-07-18  Antonio Diaz
	* Version 0.7 released.
	* buf.c (dec_addr): Now returns correct address when wrapping.

2007-06-29  Antonio Diaz
	* Version 0.6 released.
	* License updated to GPL version 3 or later.
	* signal.c (sigwinch_handler, set_signal):
	  Fixed two minor compatibility problems.
	* main_loop.c (main_loop):
	  Fixed an infinite loop when reading an empty script.

2007-03-09  Antonio Diaz
	* Version 0.5 released.
	* main_loop.c (next_addr): '%' reimplemented as it was in ed 0.2.

2007-01-15  Antonio Diaz
	* Version 0.4 released.
	* Fixed some minor problems in the testsuite.

2006-11-11  Antonio Diaz
	* Version 0.3 released.
	* buf.c (open_sbuf):
	  Fixed symlink vulnerability using standard function `tmpfile'.
	* signal.c: Fixed signal handling for SIGINT.
	* main_loop.c (exec_command): Fixed `c' and `i' commands with address 0.
	* The pause mode has been removed.
	* main.c: Added new options `--loose-exit-status' and `--verbose'.
	* carg_parser.c: New argument parser that replaces `getopt_long'.
	* `configure' and `Makefile.in' have been replaced.
	* Removed recursive make for testsuite.
	* Created directory `doc'.
	* Removed all pre ISO C89 code.
	* Removed all global variables.
	* ed.texinfo: Added to the manual the changes from Andrew and some mine.
2008-04-09 00:38:51 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
jlam
741aecb607 * Nuke all references to and definitions of INFO_DIR in package Makefiles
and replace with appropriate references to PKGINFODIR instead.

* Properly account for split info files during installation.

* Move info file listings directly into the package PLISTs.

This fixes info-file-related PLIST problems.
2006-03-20 18:15:37 +00:00
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
reed
0c1f4bdf3d Just like this configure doesn't support --infodir, it doesn't
support --mandir. Also add to the patch to allow this
PKGMANDIR customization.
2005-10-16 05:07:58 +00:00
agc
01907502f3 Add RMD160 digests in addition to the SHA1 ones. 2005-02-23 17:15:09 +00:00
reed
91e9b985e1 Rename NO_CONFIGURE_INFODIR to CONFIGURE_HAS_INFODIR (which defaults to
"yes"). So any packages that have old GNU configure script that
does not support --infodir option (while using INFO_FILES) can set
CONFIGURE_HAS_INFODIR=NO.

This was suggested by agc@ as a clearer definition.
2004-05-08 16:14:55 +00:00
reed
64ec3da5be Use a new option NO_CONFIGURE_INFODIR which is about to be introduced
because although these packages use autoconf-style configure
scripts they do not know --infodir option.
2004-05-08 02:08:38 +00:00
reed
d4f7a4db1f Make sure this installs the info document to INFO_DIR directory. 2004-05-08 01:28:36 +00:00
reed
b5394f2c1b Make sure that GNU_PROGRAM_PREFIX is prepended to
filename used by INFO_DIRS.

(Alternatively, I could patch this to not install
as ged.info for example.)
2004-05-08 01:27:03 +00:00
reed
e036ee27d8 Remove the info/ed.info entry because the INFO_FILES pkgsrc
capability registers it automatically.
2004-05-08 00:59:31 +00:00
reed
62e0dd6e41 Initial import of ed-0.2, the GNU version of line-oriented text editor. 2004-03-12 04:46:33 +00:00