Revision: | 1.1.2.1 |
Committed: | Wed Dec 1 15:14:55 1999 UTC (25 years, 5 months ago) by williamc |
Branch: | V0_9branch |
CVS Tags: | V0_14_0, V0_12_12_4, V0_12_12_3, V0_13_3, V0_13_2, V0_12_12_2, V0_12_12_1, V0_12_12_0, PlayGround_0, V0_13_1, V0_13_0, V0_12_12, V0_12_11, V0_12_9b, V0_12_10, V0_12_9, V0_12_8, V0_12_7, V0_12_6, V0_12_5, V0_12_4, V0_12_3, V0_12_2, V0_12_1, V0_12_0, V0_11_4, V0_11_3, V0_11_2, V0_11_1, V0_11_0, V0_10_19, V0_10_18, V0_10_17, V0_10_16, V0_10_15, V0_10_14, V0_10_13, V0_10_12, V0_10_11, V0_10_10, V0_10_0, V0_10_9, V0_10_8, V0_10_7, V0_10_6 |
Branch point for: | HPWbranch |
Changes since 1.1: | +29 -0 lines |
Log Message: | Add make workaround to rebuild on any datestamp change |
# | User | Rev | Content |
---|---|---|---|
1 | williamc | 1.1.2.1 | #!/usr/local/bin/perl5 -w |
2 | |||
3 | # | ||
4 | # Check a product composition file to see if any of its components have | ||
5 | # changed | ||
6 | # | ||
7 | |||
8 | use FileHandle; | ||
9 | |||
10 | my $datefile=shift @ARGV; | ||
11 | my $productfile=shift @ARGV; | ||
12 | 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 | } | ||
20 | |||
21 | # create a new dependencyfile | ||
22 | $fh=FileHandle->new(); | ||
23 | 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; |