123 reputation
5
bio website iamnearlythere.com
location Gothenburg, Sweden
age 28
visits member for 4 years, 2 months
seen Oct 8 at 14:30

Trained in informatics. Wannabe skilled programmer.


Jan
29
awarded  Scholar
Jan
29
awarded  Editor
Jan
29
revised Replace one line with STDIN in a Makefile
added 21 characters in body
Jan
29
comment Replace one line with STDIN in a Makefile
Thanks for the tip but it didn't quite work out for me. Cheers.
Jan
29
comment Replace one line with STDIN in a Makefile
Perfect. Cheers
Jan
29
accepted Replace one line with STDIN in a Makefile
Jan
29
comment Replace one line with STDIN in a Makefile
I've SHELL := /bin/bash on top, if that matters. Output from second tip: $ make template_markdown sed "/CONTENT/s/.*/perl src/Markdown_1.0.1/Markdown.pl src/index.md/" src/template.html > build/template.html sed: 1: "/CONTENT/s/.*/<h1>Proje ...": bad flag in substitute command: 'h' make: *** [template_markdown] Error 1 $ make --v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.0
Jan
29
comment Replace one line with STDIN in a Makefile
I think the escaping is off: make template_markdown outputs sed "/CONTENT/s/.*//" src/template.html > build/template.html and build/template.html is the result of that sed: the row containing "CONTENT" is now just \n.
Jan
29
awarded  Student
Jan
29
asked Replace one line with STDIN in a Makefile
Feb
10
awarded  Supporter
Aug
20
awarded  Autobiographer