diff --git a/Licenses/GPLV2.pm b/Licenses/GPLV2.pm deleted file mode 100644 index 353f0de..0000000 --- a/Licenses/GPLV2.pm +++ /dev/null @@ -1,31 +0,0 @@ -package Licenses::GPLV2; - -sub new { - return bless { - 'name' => 'gpl_v3', - 'pretty_name' => 'GPL v3', - 'header' => qq { -###DESCRIPTION### -Copyright (C) ###DATE### ###NAME### - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 3 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . - } - }, shift; -} - -sub get_license_stub { - my ($self) = @_; -} - -1; diff --git a/licensor.pl b/licensor.pl index 7d6acd3..8e4437a 100755 --- a/licensor.pl +++ b/licensor.pl @@ -55,6 +55,8 @@ print "Stub:\n-----\n" . $app->{'licenses'}->{$app->{'options'}->{'license'}}->{'header_stub'} . "\n-----\n"; +# print Data::Dumper->Dump([$app]); + find (sub { find_files($app, ${File::Find::name}, $_) }, $app->{'options'}->{'directory'}); @@ -68,6 +70,8 @@ sub find_files { # # Opportunity to filter any file types befrore any processing starts # + return if ($file =~ /\.git\b/); + handle_files ($app, $file, $name); } @@ -108,16 +112,20 @@ sub setup_filetype_comment_mapping { my ($app) = @_; $app->{'filetype_comments'} = { - '.pl' => '#', - '.rb' => '#', - '.erb' => [''], - '.html' => [''], - '.css' => ['/*', '*/'], - '.coffee' => '#', - '.js' => '//', - '.scss' => '//', - '.v' => '//', - '.sv' => '//', - '.vr' => '//' + '.pl' => '#', + '.pm' => '#', + '.rb' => '#', + '.erb' => [''], + '.html' => [''], + '.css' => ['/*', '*/'], + '.coffee' => '#', + '.js' => '//', + '.scss' => '//', + '.v' => '//', + '.sv' => '//', + '.vr' => '//', + '.gitignore' => '#', + '.gitkeep' => '#' + }; }