Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 26th March 2009
indiocolifa indiocolifa is offline
Real Name: Hernán Di Pietro
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.
$@{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 \

Thank you...

(if this post is more appropiate to the programming section, feel free to move it)
Reply With Quote

sed append makefile

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Makefile Problem BadWolf Programming 4 15th March 2009 01:58 PM
ports config and makefile scripting boincv FreeBSD Ports and Packages 6 1st October 2008 07:57 AM
Change Makefile options in ports shep FreeBSD Ports and Packages 5 18th August 2008 07:58 AM
First Post.. Woot!! --- An obvious Makefile question..? roundkat OpenBSD Packages and Ports 2 2nd May 2008 03:05 PM

All times are GMT. The time now is 05:14 AM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick