[Pcsclite-cvs-commit] r4193 - in /trunk/pcsc-tools: sort_smartcard_list.py sync.sh

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sun May 10 15:52:25 UTC 2009


Author: rousseau
Date: Sun May 10 15:52:25 2009
New Revision: 4193

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4193
Log:
new files

Added:
    trunk/pcsc-tools/sort_smartcard_list.py   (with props)
    trunk/pcsc-tools/sync.sh   (with props)

Added: trunk/pcsc-tools/sort_smartcard_list.py
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/sort_smartcard_list.py?rev=4193&op=file
==============================================================================
--- trunk/pcsc-tools/sort_smartcard_list.py (added)
+++ trunk/pcsc-tools/sort_smartcard_list.py Sun May 10 15:52:25 2009
@@ -1,0 +1,24 @@
+#! /usr/bin/env python
+
+import difflib
+import pprint
+pp = pprint.PrettyPrinter(indent=4)
+
+ATRs = list()
+for l in file("smartcard_list.txt").readlines():
+	if l == "\n" or l.startswith("#") or l.startswith("\t"):
+		continue
+	ATRs.append(l.strip())
+#	if l.startswith("\t"):
+#		ATRs.append([atr, l.strip()])
+#	else:
+#		atr = l.strip()
+
+#pp.pprint(ATRs)
+sorted_ATRs = list(ATRs)
+sorted_ATRs.sort()
+
+#pp.pprint(sorted_ATRs)
+
+for l in difflib.context_diff(ATRs, sorted_ATRs):
+	print l

Propchange: trunk/pcsc-tools/sort_smartcard_list.py
------------------------------------------------------------------------------
    svn:executable = *

Added: trunk/pcsc-tools/sync.sh
URL: http://svn.debian.org/wsvn/pcsclite/trunk/pcsc-tools/sync.sh?rev=4193&op=file
==============================================================================
--- trunk/pcsc-tools/sync.sh (added)
+++ trunk/pcsc-tools/sync.sh Sun May 10 15:52:25 2009
@@ -1,0 +1,4 @@
+set -x
+cp smartcard_list.txt ~/public_html.free/softwares/pcsc-tools/smartcard_list.txt
+cp smartcard_list.txt ~/.smartcard_list.txt
+sitecopy -u ftpperso

Propchange: trunk/pcsc-tools/sync.sh
------------------------------------------------------------------------------
    svn:executable = *




More information about the Pcsclite-cvs-commit mailing list