<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jun 3, 2013, at 3:54 PM, Martin Ward wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">i just swapped them round to read<br><br><br>run_help2man = $(SHELL) $(srcdir)/man/dummy-man<br>#run_help2man = $(PERL) -- $(srcdir)/man/help2man</span></blockquote></div><br><div>Alrighty then:</div><div><br></div><div>cp -v Makefile{,.orig}</div><div>sed -e 's/^#run_help2man\|^run_help2man/#&/' \</div><div>  -e 's/^\##run_help2man/run_help2man/' Makefile.orig > Makefile</div><div><br></div><div>Yeah!</div><div><br></div><div>Really all I wanted to do was match ^#run_help2man and append the first char of the match with the next line as the first char and remove the matched line's #.</div><div><br></div><div>Ah well, that's as far as my regex knowledge is at right now.</div><div>It finished this time.</div><div><br></div><div>Sincerely,</div><div><br></div><div>William Harrington</div></body></html>