summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba/samba_utils.py
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-03-29 21:28:49 +1100
committerAndrew Tridgell <tridge@samba.org>2010-04-06 20:27:16 +1000
commit989eb9dbdc43387502a0e0f4fc8f6e0f157eeb3c (patch)
tree9518bd686382848b7a765a4ab5c61a75d1643266 /buildtools/wafsamba/samba_utils.py
parent8692ad4950dd946bc9bb095848b6bdf5cf530ef7 (diff)
downloadsamba-989eb9dbdc43387502a0e0f4fc8f6e0f157eeb3c.tar.gz
samba-989eb9dbdc43387502a0e0f4fc8f6e0f157eeb3c.tar.bz2
samba-989eb9dbdc43387502a0e0f4fc8f6e0f157eeb3c.zip
s4-waf: added rules for rebuilding the yapp parser in pidl
Diffstat (limited to 'buildtools/wafsamba/samba_utils.py')
-rw-r--r--buildtools/wafsamba/samba_utils.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py
index d3be7945c0..4230d8066f 100644
--- a/buildtools/wafsamba/samba_utils.py
+++ b/buildtools/wafsamba/samba_utils.py
@@ -383,3 +383,12 @@ def LOAD_ENVIRONMENT():
env = Environment.Environment()
env.load('bin/c4che/default.cache.py')
return env
+
+
+def IS_NEWER(bld, file1, file2):
+ '''return True if file1 is newer than file2'''
+ t1 = os.stat(os.path.join(bld.curdir, file1)).st_mtime
+ t2 = os.stat(os.path.join(bld.curdir, file2)).st_mtime
+ return t1 > t2
+Build.BuildContext.IS_NEWER = IS_NEWER
+