repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
.gitignore
[prop.git]
/
prop-src
/
automake.cc
blob
24af3e5d19a3a16adb78eade9012c82a82b35dcb
1
#include <time.h>
2
#include <sys/types.h>
3
#include <sys/stat.h>
4
#include <stdlib.h>
5
#include <stdio.h>
6
#include
"basics.h"
7
8
Bool
out_of_date
(
const char
*
filename
,
struct
stat
&
target
)
9
{
10
struct
stat source
;
11
if
(
stat
(
filename
, &
source
))
12
{
perror
(
filename
);
return true
; }
13
double
d
=
difftime
(
source
.
st_mtime
,
target
.
st_mtime
);
14
return
d
>
0.0
;
15
}