generate ccid dump from driver in test mode
[librfid] / ccid-dump.sh
diff --git a/ccid-dump.sh b/ccid-dump.sh
new file mode 100755 (executable)
index 0000000..8df6d01
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh -xe
+test -d dump || mkdir dump
+test -f dump/ccid || gcc -DTEST -Wall -Iinclude -lusb -g src/ccid/ccid-driver.c -o dump/ccid
+./dump/ccid 2>&1 | tee dump/`hostname`.ccid