On 13 June 2011 21:39, Thomas Sailer <t.sai...@alumni.ethz.ch> wrote: > Hi, > > a few octave-force packages, namely communications, optim, and signal > have obsolete FSF addresses in their copyright notices. The following > patches correct the FSF addresses:
> Please apply. > Thanks, > Tom Hi Tom, thanks for the bug report and apologies for the delayed reply. I took the opportunity to fix this on many other files. For future reference, I used the following perl script use strict; use File::Find; use File::Copy; ## takes directories as arguments ## runs the function on all files found find(\&process_file, @ARGV); sub process_file { my $old = $File::Find::name; return unless -f $old; # only mess with plain files return if $old =~ m/\/\.svn\//; # don't mess with anything inside .svn directories my $new = $old.".replacing.tmp"; open(OLD, "<", $old) or die "Couldn't open file $old for reading: $!\n";; open(NEW, ">", $new) or die "Couldn't open file $new for writing: $!\n";; select(NEW); # use NEW as default file handle $| = 1; # change buffering to immediate flush while (my $line = <OLD>) { $line =~ s/59\s+Temple\s+Place/51 Franklin Street/i; $line =~ s/Suite\s+330/Fifth Floor/i; $line =~ s/MA\s+02111-1307/MA 02110-1301/i; print NEW $line; } close(OLD); close(NEW); move($new, $old) or die "Could not move file $new to $old"; } Carnë Draug ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense.. http://p.sf.net/sfu/splunk-d2d-c1 _______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev