I'm trying to use the 'a' sed command on a Makefile to insert a line. This is a Makefile for a port that's currently broken.
Code:
$@{REINPLACE_CMD} '|<iostream.h>|a \\ \#include <ios>|'
The problem is that 'a' requires the text to be replaced on a new line and I don't know how to put that newline character in the Makefile. make is very picky about tabs, blanks, etc.
sed a command syntax ref:
[1addr]a \
text
Thank you...
(if this post is more appropiate to the programming section, feel free to move it)