-#!/usr/bin/python
+#!/usr/bin/env python
#
# cvsdiff-fix
#
# recursive diff, and unflattens it so that it can be
# applied correctly with "patch".
#
-# $Id: cvsdiff-fix.py,v 1.2 2001/11/13 23:55:41 gram Exp $
+# $Id$
#
# Copyright (C) 2001 by Gilbert Ramirez <gram@alumni.rice.edu>
#
state = 2
elif state == 2:
+ if line.find("Binary files") == 0:
+ state = 0
+ continue
+
match = re_from.search(line)
if match:
new_line = "--- %s\\g<after>" % (pathname)