[Clfs-dev] Coreutils 8.21

William Harrington kb0iic at berzerkula.org
Mon Jun 3 14:31:03 PDT 2013


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20130603/41db2e6c/attachment-0001.htm>


More information about the Clfs-dev mailing list