You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by jo...@apache.org on 2011/05/31 19:42:55 UTC

[lucy-commits] svn commit: r1129823 - in /incubator/lucy/trunk: charmonizer/Makefile charmonizer/Makefile.win devel/bin/gen_charmonizer_makefiles.pl

Author: joes
Date: Tue May 31 17:42:55 2011
New Revision: 1129823

URL: http://svn.apache.org/viewvc?rev=1129823&view=rev
Log:
keep RAT happy

Modified:
    incubator/lucy/trunk/charmonizer/Makefile
    incubator/lucy/trunk/charmonizer/Makefile.win
    incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl

Modified: incubator/lucy/trunk/charmonizer/Makefile
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/Makefile?rev=1129823&r1=1129822&r2=1129823&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/Makefile (original)
+++ incubator/lucy/trunk/charmonizer/Makefile Tue May 31 17:42:55 2011
@@ -1,4 +1,20 @@
 # GENERATED BY ../devel/bin/gen_charmonizer_makefiles.pl: do not hand-edit!!!
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 CC= cc
 DEFS=
 PROGNAME= charmonize

Modified: incubator/lucy/trunk/charmonizer/Makefile.win
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/charmonizer/Makefile.win?rev=1129823&r1=1129822&r2=1129823&view=diff
==============================================================================
--- incubator/lucy/trunk/charmonizer/Makefile.win (original)
+++ incubator/lucy/trunk/charmonizer/Makefile.win Tue May 31 17:42:55 2011
@@ -1,4 +1,20 @@
 # GENERATED BY ../devel/bin/gen_charmonizer_makefiles.pl: do not hand-edit!!!
+#
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
 CC= cl
 DEFS=
 PROGNAME= charmonize.exe

Modified: incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl
URL: http://svn.apache.org/viewvc/incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl?rev=1129823&r1=1129822&r2=1129823&view=diff
==============================================================================
--- incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl (original)
+++ incubator/lucy/trunk/devel/bin/gen_charmonizer_makefiles.pl Tue May 31 17:42:55 2011
@@ -22,6 +22,7 @@ use File::Find qw( find );
 -d "src" or die "Switch to the directory containg the charmonizer src/.\n";
 
 my (@srcs, @tests, @hdrs);
+my $license = "";
 
 sub wanted {
     if (/\.c$/) {
@@ -84,6 +85,8 @@ sub gen_makefile {
     binmode $fh;
     my $content = <<EOT;
 # GENERATED BY $0: do not hand-edit!!!
+#
+$license
 CC= cc
 DEFS=
 PROGNAME= charmonize
@@ -127,6 +130,8 @@ sub gen_makefile_win {
     binmode $fh;
     my $content = <<EOT;
 # GENERATED BY $0: do not hand-edit!!!
+#
+$license
 CC= cl
 DEFS=
 PROGNAME= charmonize.exe
@@ -168,6 +173,13 @@ EOT
 
 ### actual script follows
 
+open my $fh, $0 or die "Can't open $0: $!\n";
+scalar <$fh>, scalar <$fh>; # skip first 2 lines
+while (<$fh>) {
+    /^#/ or last;
+    $license .= $_;
+}
+
 push @srcs, "charmonize.c";
 find \&wanted, "src";