2011-09-20 17:20:53 +02:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2012-01-21 00:27:52 +01:00
|
|
|
from hb_test_tools import *
|
|
|
|
import sys, os
|
2011-09-20 17:20:53 +02:00
|
|
|
|
2012-01-21 00:27:52 +01:00
|
|
|
if len (sys.argv) != 3:
|
|
|
|
print "usage: %s [--color] file1 file2" % sys.argv[0]
|
|
|
|
sys.exit (1)
|
2011-09-20 17:20:53 +02:00
|
|
|
|
2012-01-21 00:27:52 +01:00
|
|
|
colors = Colors.Auto (sys.argv)
|
2011-09-20 17:20:53 +02:00
|
|
|
|
2012-01-21 00:27:52 +01:00
|
|
|
f1, f2 = (open_file_or_stdin (f) for f in sys.argv[1:3])
|
2011-09-20 17:20:53 +02:00
|
|
|
|
2012-01-21 00:27:52 +01:00
|
|
|
FancyDiffer.diff_files (f1, f2, colors=colors)
|