ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/scramdatestamp
(Generate patch)

Comparing COMP/SCRAM/src/scramdatestamp (file contents):
Revision 1.1.2.1 by williamc, Wed Dec 1 15:14:55 1999 UTC vs.
Revision 1.4 by sashby, Fri Dec 10 13:57:46 2004 UTC

# Line 1 | Line 1
1 #!/usr/local/bin/perl5 -w
2
1   #
2   # Check a product composition file to see if any of its components have
3   # changed
4   #
5  
6   use FileHandle;
7 + use BuildSystem::DateStampRecord;
8  
9   my $datefile=shift @ARGV;
10   my $productfile=shift @ARGV;
11   my @depfiles=@ARGV;
13 $self={};
14        # get dates in our dependency list
15        foreach $file ( @depfiles ) {
16         if ( -e $file ) {
17            $self->{moddate}{$file}=(stat($file))[9];
18         }
19        }
12  
13 <        # create a new dependencyfile
14 <        $fh=FileHandle->new();
15 <        open ($fh, ">".$datefile );
24 <        foreach $file ( @depfiles ) {
25 <        #print $file." ".$self->{moddate}{$file}."\n";
26 <          print $fh $file."\n";
27 <          print $fh $self->{moddate}{$file}."\n";
28 <        }
29 <        close $fh;
13 > my $ds=BuildSystem::DateStampRecord->new($datefile);
14 > $ds->product($productfile);
15 > $ds->makerecord(@depfiles);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines