From: <car...@us...> - 2012-01-19 12:30:54
|
Revision: 9541 http://octave.svn.sourceforge.net/octave/?rev=9541&view=rev Author: carandraug Date: 2012-01-19 12:30:43 +0000 (Thu, 19 Jan 2012) Log Message: ----------- copyright_fix: added AGPL and LGPL to script Modified Paths: -------------- trunk/octave-forge/admin/copyright_fix.pl Modified: trunk/octave-forge/admin/copyright_fix.pl =================================================================== --- trunk/octave-forge/admin/copyright_fix.pl 2012-01-19 09:47:42 UTC (rev 9540) +++ trunk/octave-forge/admin/copyright_fix.pl 2012-01-19 12:30:43 UTC (rev 9541) @@ -29,7 +29,8 @@ ## and 'h'. See also the '--comment' option. ## ## --license License to use. Defaults to "GPL". Valid options are "GPL", -## "modified BSD", "FreeBSD", "simplified BSD" and "public domain". +## "LGPL", "AGPL", "modified BSD", "FreeBSD", "simplified BSD" and +## "public domain". ## ## --replace Replace existing copyright notice on the files for the new one. ## A copyright notice is identified as the first block of comments @@ -163,6 +164,42 @@ "this program; if not, see <http://www.gnu.org/licenses/>.", ); } + when (/LGPL/i) { + @text = ( + @copyR_line, + "", + "This program is free software; you can redistribute it and/or modify it under", + "the terms of the GNU Lesser 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 Lesser General Public License", + "for more details.", + "", + "You should have received a copy of the GNU Lesser General Public License", + "along with this program; if not, see <http://www.gnu.org/licenses/>.", + ); + } + when (/AGPL/i) { + @text = ( + @copyR_line, + "", + "This program is free software; you can redistribute it and/or modify it under", + "the terms of the GNU Affero 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 Affero General Public License", + "for more details.", + "", + "You should have received a copy of the GNU Affero General Public License", + "along with this program; if not, see <http://www.gnu.org/licenses/>.", + ); + } when (/modified BSD/i) { @text = (@BSD_header, @{$BSD_clauses[0]}, @{$BSD_clauses[1]}, @{$BSD_clauses[2]}, @BSD_disclaimer); } when (/simplified BSD/i) { @text = (@BSD_header, @{$BSD_clauses[0]}, @{$BSD_clauses[1]}, @BSD_disclaimer); } when (/FreeBSD/i) { @text = (@BSD_header, @{$BSD_clauses[0]}, @{$BSD_clauses[1]}, @BSD_disclaimer, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <car...@us...> - 2012-09-20 14:11:22
|
Revision: 11058 http://octave.svn.sourceforge.net/octave/?rev=11058&view=rev Author: carandraug Date: 2012-09-20 14:11:11 +0000 (Thu, 20 Sep 2012) Log Message: ----------- copyright_fix.pl: check if path was given and warn otherwise Modified Paths: -------------- trunk/octave-forge/admin/copyright_fix.pl Modified: trunk/octave-forge/admin/copyright_fix.pl =================================================================== --- trunk/octave-forge/admin/copyright_fix.pl 2012-09-19 22:21:29 UTC (rev 11057) +++ trunk/octave-forge/admin/copyright_fix.pl 2012-09-20 14:11:11 UTC (rev 11058) @@ -240,4 +240,8 @@ if ($verbose) { say "Added copyright notice to '$_'"; } } -find(\&fix, @ARGV); # this call does all the recursive work +if (@ARGV) { + find(\&fix, @ARGV); # this call does all the recursive work +} else { + warn ("No path was specified, no changes were made"); +} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |