From: Avi Kivity <[email protected]>

Signed-off-by: Avi Kivity <[email protected]>

diff --git a/sync b/sync
index 54dcfcd..07dae44 100755
--- a/sync
+++ b/sync
@@ -22,10 +22,9 @@ def _hack(file, arch):
         ' > "%(file)s" && rm "%(file)s.orig"'
         % { 'file': file, 'arch': arch, 'version': version })
 
-def unifdef(file):
-    cmd('mv "%(file)s" "%(file)s".orig'
-        ' && cat unifdef.h "%(file)s".orig > "%(file)s"'
-        ' && rm "%(file)s".orig' % { 'file': file })
+def unifdef(fname):
+    data = file('unifdef.h').read() + file(fname).read()
+    file(fname, 'w').write(data)
 
 def hack(T, arch, file):
     _hack(T + '/' + file, arch)
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to