Whamcloud - gitweb
- merge 0.7rc1 from b_devel to HEAD (20030612 merge point)
[fs/lustre-release.git] / lustre / scripts / version_tag.pl
index 3575b87..f33443f 100644 (file)
@@ -59,6 +59,9 @@ sub get_latest_mtime()
             $cur_dir =~ s/\/CVS\/Entries$//;
             my @statbuf = stat("$cur_dir/$file");
             my $mtime = $statbuf[9];
+            if (!defined($mtime)) {
+                next;
+            }
             my $local_date = gmtime($mtime);
             if ($local_date ne $date &&
                 $file ne "lustre.spec.in") {
@@ -100,7 +103,7 @@ sub get_linuxdir()
     }
     while (defined($line = <$config>)) {
         chomp($line);
-        if ($line =~ /LINUX = (.*)/) {
+        if ($line =~ /LINUX :?= (.*)/) {
             $dir = $1;
             last;
         }