move portable copyfile function into tools/autowaf.py and use it in both gtk2_ardour and taglib

This commit is contained in:
Paul Davis 2013-12-19 12:55:52 -05:00
parent 298768fb73
commit 94993816cc
4 changed files with 9 additions and 7 deletions

View file

@ -103,7 +103,7 @@ def build(bld):
for h in headers:
tgt = bld.path.get_bld().make_node (os.path.join ('taglib', os.path.basename (h)))
if not os.path.exists (tgt.bldpath()):
bld (rule = "cp ${SRC} ${TGT}",
bld (rule = autowaf.copyfile,
source = bld.path.make_node (os.path.join ('taglib', h)),
target = tgt)