[Pcsclite-cvs-commit] r2314 - trunk/Drivers/ccid/src

Ludovic Rousseau rousseau at alioth.debian.org
Sat Jan 6 22:52:19 CET 2007


Author: rousseau
Date: 2007-01-06 22:52:18 +0100 (Sat, 06 Jan 2007)
New Revision: 2314

Modified:
   trunk/Drivers/ccid/src/create_Info_plist.pl
Log:
replace MAGIC_IFDCAPABILITIES by the 3rd command line argument


Modified: trunk/Drivers/ccid/src/create_Info_plist.pl
===================================================================
--- trunk/Drivers/ccid/src/create_Info_plist.pl	2007-01-06 21:51:32 UTC (rev 2313)
+++ trunk/Drivers/ccid/src/create_Info_plist.pl	2007-01-06 21:52:18 UTC (rev 2314)
@@ -24,10 +24,11 @@
 
 my (@manuf, @product, @name);
 my ($manuf, $product, $name);
+my $ifdCapabilities;
 
-if ($#ARGV ne 1)
+if ($#ARGV ne 2)
 {
-	print "usage: $0 supported_readers.txt Info.plist\n";
+	print "usage: $0 supported_readers.txt Info.plist ifdCapabilities\n";
 	exit;
 }
 
@@ -50,6 +51,8 @@
 map { $_ = "\t\t<string>$_</string>\n" } @product;
 map { $_ = "\t\t<string>$_</string>\n" } @name;
 
+$ifdCapabilities=$ARGV[2];
+
 open IN, "< $ARGV[1]" or die "Can't open $ARGV[1]: $!";
 
 while (<IN>)
@@ -69,6 +72,12 @@
 		print @name;
 		next;
 	}
+	if (m/MAGIC_IFDCAPABILITIES/)
+	{
+		s/MAGIC_IFDCAPABILITIES/$ifdCapabilities/;
+		print;
+		next;
+	}
 	print;
 }
 




More information about the Pcsclite-cvs-commit mailing list