From 9824598387ec69e02b4010d4cf6af802b0b28417 Mon Sep 17 00:00:00 2001 From: Dongxu Ma Date: Tue, 22 Feb 2011 15:59:27 +0000 Subject: [PATCH] add license banner in generated xs code --- PerlQt/script/gen_xscode_mk.pl | 4 ++-- PerlQt/template/include.tt2 | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/PerlQt/script/gen_xscode_mk.pl b/PerlQt/script/gen_xscode_mk.pl index a2e865b..6b8e78c 100755 --- a/PerlQt/script/gen_xscode_mk.pl +++ b/PerlQt/script/gen_xscode_mk.pl @@ -50,7 +50,7 @@ sub main { # no need to include classname.function # which has member function implementations my @deps = - grep { not m/\.(?:function|protected|typedef|friend)$/io } + grep { not m/\.(?:function|protected|friend)$/io } glob(File::Spec::->catfile( $in_xscode_dir, $classname. ".*")); push @deps, File::Spec::->catfile( @@ -126,7 +126,7 @@ sub main { =head1 COPYRIGHT AND LICENSE -Copyright (C) 2007 - 2008 by Dongxu Ma +Copyright (C) 2007 - 2011 by Dongxu Ma This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. diff --git a/PerlQt/template/include.tt2 b/PerlQt/template/include.tt2 index 28dfed2..4507c3f 100644 --- a/PerlQt/template/include.tt2 +++ b/PerlQt/template/include.tt2 @@ -1 +1,7 @@ +################################################################ +# THE FOLLOWING CODE IS AUTOMATED, ANY MODIFICATION WILL BE LOST! +# This library is free software; you can redistribute it and/or +# modify it under the same terms as Perl itself. +# See http://dev.perl.org/licenses/artistic.html +################################################################ #include [% my_module.remove('::') %]/[% my_file %].h