View Single Post
  #1   (View Single Post)  
Old 26th March 2009
indiocolifa indiocolifa is offline
Real Name: HernĂ¡n Di Pietro
UnixUser
 
Join Date: Mar 2009
Location: La Plata
Posts: 17
Default ${REINPLACE_CMD} on Makefile

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)
Reply With Quote