[BACK]Return to NewTorrents.pl CVS log [TXT][DIR] Up to [local] / openbsd / OpenBSDTorrents

Diff for /openbsd/OpenBSDTorrents/NewTorrents.pl between version 1.1 and 1.2

version 1.1, 2005/03/24 05:28:08 version 1.2, 2005/03/24 05:32:49
Line 20 
Line 20 
                 my ($dir, $file) = $file =~ m#^(.*)/([^/]+)#;                  my ($dir, $file) = $file =~ m#^(.*)/([^/]+)#;
                 #print "$dir - $file\n";                  #print "$dir - $file\n";
                 if ($last_dir && $last_dir ne $dir) {                  if ($last_dir && $last_dir ne $dir) {
                         # This actually needs to be a sub that forks off                          StartTorrent($last_dir);
                         # the generation of this, and the running of the update script.  
                         print "MakeTorrent.pl $BaseName/$dir\n";  
                 }                  }
                 $last_dir = $dir;                  $last_dir = $dir;
         } else {          } else {
                 #print $_;                  #print $_;
         }          }
   }
   StartTorrent($last_dir);
   
   sub StartTorrent
   {
           my $dir = shift;
   
           # This actually needs to be a sub that forks off
           # the generation of this, and the running of the update script.
           print "MakeTorrents.pl $BaseName/$dir\n";
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>