[chbot] Lazy software developers please read...
Volker Kuhlmann
list0570 at paradise.net.nz
Wed Aug 6 10:29:57 BST 2014
On Wed 06 Aug 2014 20:47:30 NZST +1200, Marek Kuziel wrote:
> > > find .|grep ".c\|.h"|xargs sed -i
> > > 's/CODE_OR_PATTERN_TO_FIND/NEW_CODE_TO_REPLACE_THE_FOUND_CODE_WITH/'
You can not possibly use such a sed construct to create multi-line
comments filled in with one keyword per function argument and return
value. The function declaration may be split over multiple lines, etc
etc. The suggestion is ridiculous! Scripting that in e.g. python would
be much saner (and still non-trivial), however it was already clear from
the OP (see "lazy" in subject) that such solution was wanted to be
found, not made, and even if found, would provide limited benefit. So
if you know doxygen I'm afraid I don't understand what you intended your
sed invocation to achieve that the OP asked for.
Volker
--
Volker Kuhlmann
http://volker.top.geek.nz/ Please do not CC list postings to me.
More information about the Chchrobotics
mailing list