[Pcsclite-cvs-commit] r273 - trunk/MCardPlugin

Ludovic Rousseau rousseau at costa.debian.org
Wed Jan 25 15:19:24 UTC 2006


Author: rousseau
Date: 2006-01-25 15:19:24 +0000 (Wed, 25 Jan 2006)
New Revision: 273

Modified:
   trunk/MCardPlugin/installBundle
Log:
Remove the manual configuration. If the system is not yet supported the
script should be modified.


Modified: trunk/MCardPlugin/installBundle
===================================================================
--- trunk/MCardPlugin/installBundle	2006-01-25 15:15:20 UTC (rev 272)
+++ trunk/MCardPlugin/installBundle	2006-01-25 15:19:24 UTC (rev 273)
@@ -17,64 +17,28 @@
 targetname="mscMuscleCard"
 
 hostType=`uname`
-echo "Determining system type "
-vFlag=0
 
 case "$hostType" in
-	SunOS) 		vFlag=1 
-			hostType="Solaris";;
-	Linux) 		vFlag=1
-			hostType="Linux";;
-	Darwin) 	vFlag=1
-			dso_suffix="dylib"
-			hostType="MacOS";;
-	BSD) 		vFlag=1
-			hostType="BSD";;
-	HPUX) 		vFlag=1
-			dso_suffix="sl"
-			hostType="HPUX";;
-	Tru64) 		vFlag=1
-			hostType="Tru64";;
-	*)		vFlag=0;;
+	SunOS)
+		hostType="Solaris";;
+	Linux)
+		hostType="Linux";;
+	Darwin)
+		dso_suffix="dylib"
+		hostType="MacOS";;
+	BSD)
+		hostType="BSD";;
+	HPUX)
+		dso_suffix="sl"
+		hostType="HPUX";;
+	Tru64)
+		hostType="Tru64";;
+	*)
+		echo "Couldn't determine system type: $hostType"
+		exit;;
 esac
+echo "Configuring for system: $hostType"
 
-if [ "$vFlag" = 1 ] 
-then
-	echo "Configuring for system: $hostType"
-else
-	echo "Couldn't determine system type"
-
-	echo "Which of the following are you using ?"
-	echo "	Linux"
-	echo "	Solaris"
-	echo "	Tru64"
-	echo "	MacOS"
-	echo "	HPUX"
-	echo "	BSD"
-
-	echo "Enter the value: "
-
-	if read hostType
-	then
-		echo "Operating System"
-	else
-		echo "terminating"                                     
-   	exit 0                                       
-	fi
-
-	case "$hostType" in
-		Solaris) 	echo "Solaris";;
-		Linux) 		echo "Linux";;
-		MacOS) 		echo "MacOS";;
-		BSD) 		echo "BSD";;
-		HPUX) 		dso_suffix="sl"
-				echo "HPUX";;
-		Tru64) 		echo "Tru64";;
-		*)		echo "Invalid OS Choice"
-				exit 1;;
-	esac
-fi
-
 echo "Writing service bundle for $targetname in $DESTDIR"
 if [ ! -d $DESTDIR ]
 then




More information about the Pcsclite-cvs-commit mailing list