]> git.vpit.fr Git - perl/modules/CPANPLUS-Dist-Gentoo.git/commitdiff
Add a sensible default header
authorVincent Pit <vince@profvince.com>
Tue, 8 Sep 2009 14:23:16 +0000 (16:23 +0200)
committerVincent Pit <vince@profvince.com>
Tue, 8 Sep 2009 14:23:16 +0000 (16:23 +0200)
lib/CPANPLUS/Dist/Gentoo.pm

index 2b2ba21b242acb51982fc0ea7136988c8c42b2ae..cbae7a0a7191e25065452f3a5adea137a1bd48c0 100644 (file)
@@ -167,7 +167,12 @@ sub prepare {
   1 while chomp $header;
   $header .= "\n\n";
  } else {
-  $header = '';
+  my $year = (localtime)[5] + 1900;
+  $header = <<"  DEF_HEADER";
+# Copyright 1999-$year Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# \$Header: \$
+  DEF_HEADER
  }
  $stat->header($header);