Skip to main content

Introducing headers-date

As seen in my previous introducing posts, for example the libwsmeta and todoSummarizer ones, I'm currently freeing some private projects. So a few weeks ago, I released a new ruby project : headers-date.

When a new year starts, all headers of all projects must be updated with the new year. This project will help you search for copyright date and eventually sort these files.

rainbrurpg's c++ header example

The aim of this program is to make a summary of the files recursively found in the given directory sorted by copyright date. While the standard output only prints file number, the verbose output will print all files.

Here's an example output :
/headers-date.rb <project_root>
==>No Copyright found :
  402 file(s) found

==>2016-2017 :
  10 file(s) found

==>2016 :
  1 file(s) found

==>2011, :
  1 file(s) found

==> :
  1 file(s) found

And a verbose output example (the project root directory is replaced with the <project_root> string :
./headers-date.rb -v <project_root>
Verbose mode enabled
==>2016-2017 (10 file(s) found) :

==>2016 (1 file(s) found) :

==>2011, (1 file(s) found) :

==> (1 file(s) found) :

headers-date is freely available and licensed under the terms of the GPLv3 license.


Popular posts from this blog

How to make a map of variant in C++

This code is used by RainbruRPG to store any scalar types in a single class instance. It's already in use since revision 254 to save game states values when switching fullscreen or changing screen resolution.
The map class It's basically a map of boost::variant using std::string as map key. I decided to use function template setter and getter to have a standardized exception-based error handling, but you could have multiple parameter-based specialized getter/setter (void set(bool), void set(int)...).