Ads

 

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) :
  <project_root>/main.c
  <project_root>/lib/wsmeta_test.h
  <project_root>/lib/wsmeta.c
  <project_root>/lib/wsmeta.h
  <project_root>/lib/lenstring.c
  <project_root>/lib/wsmeta_test.c
  <project_root>/lib/lenstring.h
  <project_root>/lib/tests.c

==>2016 (1 file(s) found) :
  <project_root>/html/wsmeta__test_8h_source.html

==>2011, (1 file(s) found) :
  <project_root>/html/jquery.js

==> (1 file(s) found) :
  <project_root>/.git/hooks/pre-rebase.sample

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

Comments

Ads