On Jun 3, 2013, at 3:54 PM, Martin Ward wrote:

i just swapped them round to read


run_help2man = $(SHELL) $(srcdir)/man/dummy-man
#run_help2man = $(PERL) -- $(srcdir)/man/help2man

Alrighty then:

cp -v Makefile{,.orig}
sed -e 's/^#run_help2man\|^run_help2man/#&/' \
  -e 's/^\##run_help2man/run_help2man/' Makefile.orig > Makefile

Yeah!

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 #.

Ah well, that's as far as my regex knowledge is at right now.
It finished this time.

Sincerely,

William Harrington
_______________________________________________
Clfs-dev mailing list
[email protected]
http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org

Reply via email to