Sounds like more of a job for perl, python or ruby to me.<br><br><br><div class="gmail_quote">On Fri, Jul 1, 2011 at 12:17 PM, Raymond Wan <span dir="ltr">&lt;<a href="mailto:r.wan@aist.go.jp">r.wan@aist.go.jp</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi all,<br>
<br>
I was wondering if there is an easy/automated way that I can get CMake<br>
or CPack to add a license to every source file prior to distribution<br>
of the source.  Of course, I mean that I would provide the wording of<br>
the license and &quot;all&quot; it does is copy this license to the top of each<br>
source file in a way that is specific to the language (ideally).<br>
i.e., using // for C++ source files.<br>
<br>
It would be nice if it could also update dates too, but that&#39;s more of<br>
a wishlist.  (i.e., changing &quot;Copyright 2011&quot; to &quot;Copyright<br>
2011-2012&quot;)<br>
<br>
Thank you!<br>
<br>
Ray<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br>