move portable copyfile function into tools/autowaf.py and use it in both gtk2_ardour...
[ardour.git] / gtk2_ardour / wscript
index cd606029eb8cddb9d6a63164d86d4c26d71f9ac5..f5ff15e9c672c0249653d819a40243884ff705e3 100644 (file)
@@ -365,11 +365,6 @@ def build_color_scheme(path, prefix):
     f.close()
     return color_scheme
 
-def copyfile (task):
-    src = task.inputs[0].abspath()
-    tgt = task.outputs[0].abspath()
-    shutil.copy2 (src, tgt)
-
 def build(bld):
 
     VERSION = "%s.%s" % (bld.env['MAJOR'], bld.env['MINOR'])
@@ -644,7 +639,7 @@ def build(bld):
     obj.install_path = None
     set_subst_dict(obj, light_rc_subst_dict)
 
-    obj              = bld(rule = copyfile) 
+    obj              = bld(rule = autowaf.copyfile) 
     obj.source       = [ 'ardour3_widget_list.rc' ]
     obj.target       = 'ardour3_widgets.rc'
     obj.install_path = None