From 5d32d69b2c6b0ebfb9504f45cbc5baa9b801dfd1 Mon Sep 17 00:00:00 2001 From: Mike Small Date: Tue, 29 Sep 2020 14:15:23 -0400 Subject: [PATCH] Makefile: openbsd sed is fussy about i cmd It wants i to be... i\ text to insert Decided to use a substitution instead of delete and insert. Eventually figured out how to account for both shell and Make's variable substitution and quoting rules. I hate Unix today. Test again on Slackware 14.2 asap. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 057a5f5..a83d416 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ frfac: - sed "1d;2i #!`./latest_perl`" frfac.in > frfac + sed '1s@^.*$$@\#\!'$$(latest_perl)@ frfac.in > frfac check: `./latest_perl` -wc frfac.in