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.
This commit is contained in:
Mike Small 2020-09-29 14:15:23 -04:00
parent 8161badc0e
commit 5d32d69b2c
1 changed files with 1 additions and 1 deletions

View File

@ -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