[Pcsclite-cvs-commit] r290 - in /trunk: AuthICPlugin/installBundle CFlexPlugin/installBundle MCardPlugin/installBundle MCardPluginDDK/installBundle

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jun 24 09:18:44 UTC 2009


Author: rousseau
Date: Wed Jun 24 09:18:42 2009
New Revision: 290

URL: http://svn.debian.org/wsvn/muscleplugins/?sc=1&rev=290
Log:
use a sane default value for host type. Add support of GNU/Hurd for free

Modified:
    trunk/AuthICPlugin/installBundle
    trunk/CFlexPlugin/installBundle
    trunk/MCardPlugin/installBundle
    trunk/MCardPluginDDK/installBundle

Modified: trunk/AuthICPlugin/installBundle
URL: http://svn.debian.org/wsvn/muscleplugins/trunk/AuthICPlugin/installBundle?rev=290&op=diff
==============================================================================
--- trunk/AuthICPlugin/installBundle (original)
+++ trunk/AuthICPlugin/installBundle Wed Jun 24 09:18:42 2009
@@ -17,70 +17,20 @@
 dso_suffix="so"
 
 hostType=`uname`
-echo "Determining system type "
-vFlag=0
-
+# some systems need a special case
 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;;
 esac
 
-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) 		echo "HPUX";;
-		Tru64) 		echo "Tru64";;
-		*)		echo "Invalid OS Choice"
-				exit 1;;
-	esac
-fi
-
+echo "Configuring for system: $hostType"
 echo "Writing service bundle for $targetname in $DESTDIR"
 if [ ! -d $DESTDIR ]
 then

Modified: trunk/CFlexPlugin/installBundle
URL: http://svn.debian.org/wsvn/muscleplugins/trunk/CFlexPlugin/installBundle?rev=290&op=diff
==============================================================================
--- trunk/CFlexPlugin/installBundle (original)
+++ trunk/CFlexPlugin/installBundle Wed Jun 24 09:18:42 2009
@@ -17,70 +17,20 @@
 dso_suffix="so"
 
 hostType=`uname`
-echo "Determining system type "
-vFlag=0
-
+# some systems need a special case
 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;;
 esac
 
-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) 		echo "HPUX";;
-		Tru64) 		echo "Tru64";;
-		*)		echo "Invalid OS Choice"
-				exit 1;;
-	esac
-fi
-
+echo "Configuring for system: $hostType"
 echo "Writing service bundle for $targetname in $DESTDIR"
 if [ ! -d $DESTDIR ]
 then

Modified: trunk/MCardPlugin/installBundle
URL: http://svn.debian.org/wsvn/muscleplugins/trunk/MCardPlugin/installBundle?rev=290&op=diff
==============================================================================
--- trunk/MCardPlugin/installBundle (original)
+++ trunk/MCardPlugin/installBundle Wed Jun 24 09:18:42 2009
@@ -17,77 +17,25 @@
 dso_suffix="so"
 
 hostType=`uname`
-echo "Determining system type "
-vFlag=0
-
+# some systems need a special case
 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;;
 esac
 
-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) 		echo "HPUX";;
-		Tru64) 		echo "Tru64";;
-		*)		echo "Invalid OS Choice"
-				exit 1;;
-	esac
-fi
-
+echo "Configuring for system: $hostType"
 echo "Writing service bundle for $targetname in $DESTDIR"
 if [ ! -d $DESTDIR ]
 then
 	install -d -m 755 $DESTDIR
 fi
-
-set -x
 cp -r src/$bundlename $DESTDIR
 install -d -m 755 $DESTDIR/$bundlename/Contents/$hostType
 install -m 644 src/.libs/$libname.$dso_suffix $DESTDIR/$bundlename/Contents/$hostType/$targetname

Modified: trunk/MCardPluginDDK/installBundle
URL: http://svn.debian.org/wsvn/muscleplugins/trunk/MCardPluginDDK/installBundle?rev=290&op=diff
==============================================================================
--- trunk/MCardPluginDDK/installBundle (original)
+++ trunk/MCardPluginDDK/installBundle Wed Jun 24 09:18:42 2009
@@ -17,70 +17,20 @@
 dso_suffix="so"
 
 hostType=`uname`
-echo "Determining system type "
-vFlag=0
-
+# some systems need a special case
 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;;
 esac
 
-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) 		echo "HPUX";;
-		Tru64) 		echo "Tru64";;
-		*)		echo "Invalid OS Choice"
-				exit 1;;
-	esac
-fi
-
+echo "Configuring for system: $hostType"
 echo "Writing service bundle for $targetname in $DESTDIR"
 if [ ! -d $DESTDIR ]
 then




More information about the Pcsclite-cvs-commit mailing list