[CMake] CPack -- adding license to files

David Cole david.cole at kitware.com
Fri Jul 1 12:51:05 EDT 2011


Sounds like more of a job for perl, python or ruby to me.


On Fri, Jul 1, 2011 at 12:17 PM, Raymond Wan <r.wan at aist.go.jp> wrote:

> Hi all,
>
> I was wondering if there is an easy/automated way that I can get CMake
> or CPack to add a license to every source file prior to distribution
> of the source.  Of course, I mean that I would provide the wording of
> the license and "all" it does is copy this license to the top of each
> source file in a way that is specific to the language (ideally).
> i.e., using // for C++ source files.
>
> It would be nice if it could also update dates too, but that's more of
> a wishlist.  (i.e., changing "Copyright 2011" to "Copyright
> 2011-2012")
>
> Thank you!
>
> Ray
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110701/c8c62f90/attachment.htm>


More information about the CMake mailing list