[Pcsclite-git-commit] [CCID] 03/04: MacOSX/configure: move definition of MAC_VERSION
Ludovic Rousseau
rousseau at moszumanska.debian.org
Fri Dec 16 17:55:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
rousseau pushed a commit to branch master
in repository CCID.
commit 3a7f9b26418991ffff10fc61a8c56ddccbc901aa
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Fri Dec 16 10:30:16 2016 +0100
MacOSX/configure: move definition of MAC_VERSION
MAC_VERSION can now be used by the code checking Universal Binary.
---
MacOSX/configure | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/MacOSX/configure b/MacOSX/configure
index 1d0639c..ce2c39f 100755
--- a/MacOSX/configure
+++ b/MacOSX/configure
@@ -64,6 +64,9 @@ fi
# not included
CFLAGS="$CFLAGS -DRESPONSECODE_DEFINED_IN_WINTYPES_H"
+# get the Mac OS X major version. Example: El Capitan 10.11 -> 10011
+MAC_VERSION=$(sw_vers -productVersion | awk -F '.' '{print $1 * 1000 + $2}')
+
# Build a Universal Binary
UB=$(file $LIBUSB_ARCHIVE | grep "Mach-O universal binary")
echo $UB
@@ -89,9 +92,7 @@ then
CONFIGURE_ARGS="$CONFIGURE_ARGS --enable-syslog"
fi
-# get the Mac OS X major version. Example: El Capitan 10.11 -> 10011
-MAC_VERSION=$(sw_vers -productVersion | awk -F '.' '{print $1 * 1000 + $2}')
-
+# Check where to install the driver
if [ 10011 -gt $MAC_VERSION ]
then
# Mac OS X < 10.11
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/CCID.git
More information about the Pcsclite-cvs-commit
mailing list