/[hyperestraier_wrappers]/trunk/perl/scripts/est-spider
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/perl/scripts/est-spider

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30 by dpavlin, Sun Sep 18 18:21:06 2005 UTC revision 31 by dpavlin, Wed Sep 21 15:59:54 2005 UTC
# Line 32  my $result = GetOptions( Line 32  my $result = GetOptions(
32    
33  my $dir = shift @ARGV || die "usage: $0 [dir]";  my $dir = shift @ARGV || die "usage: $0 [dir]";
34    
35    if (! -e $dir) {
36            warn "directory $dir doesn't exist, skipping\n";
37            exit 1;
38    }
39    
40  #my $basedir = $0;  #my $basedir = $0;
41  #$basedir =~ s,/[^/]+$,/,;  #$basedir =~ s,/[^/]+$,/,;
42  #require "$basedir/filter.pm";  #require "$basedir/filter.pm";
# Line 138  sub file { Line 143  sub file {
143    
144          return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak)$/);          return if (! $force && -l $path || $path =~ m#/.svn# || $path =~ m/(~|.bak)$/);
145    
146          my $mtime = (stat($path))[9];          my $mtime = (stat($path))[9] || -1;
147          my $mtime_db = $db->get_doc_attr_by_uri("file:///$path", '@mtime') || -2;          my $mtime_db = $db->get_doc_attr_by_uri("file:///$path", '@mtime') || -2;
148    
149          if ($mtime == $mtime_db) {          if ($mtime == $mtime_db) {

Legend:
Removed from v.30  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.26