SED

Minised

References

Install

curl -OL http://dl.exactcode.de/oss/minised/minised-1.15.tar.gz
tar xzf minised-1.15.tar.gz
cd minised-1.15
# Patch with the code below
patch
make CC="diet gcc -nostdinc" PREFIX=/opt/diet MANDIR=/opt/diet/man install

Patch:

--- Makefile.orig	2022-01-16 20:38:10.970713410 +0100
+++ Makefile	2022-01-16 20:52:29.304993919 +0100
@@ -15,8 +15,8 @@
 sedcomp.o: sedcomp.c sed.h
 sedexec.o: sedexec.c sed.h
 
-install:
-	install -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
+install: minised minised.1
+	-install -d -m 755 $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
 	install -m 755 minised $(DESTDIR)$(BINDIR)
 	install -m 644 minised.1 $(DESTDIR)$(MANDIR)
 
--- README.orig	2022-01-16 20:42:53.975438596 +0100
+++ README	2022-01-16 20:46:23.936006193 +0100
@@ -35,7 +35,7 @@
 latest gcc versions have been corrected.
 
 The 1.8 version fixes matching of some escaped characters (a regression
-introduced with \+ star matching), \+ star matching to corretly copy
+introduced with \+ star matching), \+ star matching to correctly copy
 and mark the internal bytecode representation, back references inside lhs
 regular expressions matching (to work at all) and marking the correct
 regular expression for star matches.
@@ -43,7 +43,7 @@
 The 1.9 version included a microoptimization shaving some bytes off the
 binary and some cpu cycles at run time, reusing the previous regular
 expressions for empty ones, predefined character classes with control
-characters, handling of escaped ampesands and support for backreference
+characters, handling of escaped ampersands and support for backreference
 \0 and Kleene star operator on groups.
 
 The 1.10 version fixed a special case of grouped star matching where
@@ -88,4 +88,4 @@
 for updates of this software. There is a sed FAQ kept at these
 locations:
 
-   http://www.dreamwvr.com/sed-info/sed-faq.html
+   https://www.pement.org/sed/sedfaq.html

Revision #3
Created 16 January 2022 19:18:49 by Georg Lehner
Updated 16 January 2022 20:18:00 by Georg Lehner