blob: b8217424f64db7696f484b3c3f5e338672e45df7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
"""SCons.Sig.TimeStamp
The TimeStamp signature package for the SCons software construction
utility.
"""
__revision__ = "Sig/TimeStamp.py __REVISION__ __DATE__ __DEVELOPER__"
def _init():
pass # XXX
def _end():
pass # XXX
def current(obj, sig):
"""Return whether the object's timestamp is up-to-date.
"""
return obj.signature() >= sig
def set():
pass # XXX
def invalidate():
pass # XXX
def collect(*objects):
"""Collect timestamps from a list of objects, returning
the most-recent timestamp from the list.
"""
r = 0
for obj in objects:
s = obj.signature()
if s > r:
r = s
return r
def signature(contents):
"""Generate a timestamp.
"""
pass # XXX
# return md5.new(contents).hexdigest() # 2.0
return hexdigest(md5.new(contents).digest())
def cmdsig():
pass # XXX
def srcsig():
pass # XXX
|