diff configure @ 139:5eab7c73a28a

Add PT3 driver
author Naoya OYAMA <naoya.oyama@gmail.com>
date Sat, 28 Jul 2012 16:05:28 +0900
parents 2a9ac5ce2c7e
children faa0bc5fc2f5
line wrap: on
line diff
--- a/configure	Mon Jul 02 20:19:00 2012 +0900
+++ b/configure	Sat Jul 28 16:05:28 2012 +0900
@@ -468,6 +468,27 @@
 fi
 
 #################################################
+#  check pt3 driver
+#################################################
+if test -e pt3/mp_auto_pull ; then
+    if ! (cd pt3 && git pull --rebase) ; then
+        echo "git pull failed, (re)move pt3/auto_pull to disable pulling"
+        exit 1
+    fi
+fi
+
+if ! test -e pt3 ; then
+    echo "No pt3 checkout, press enter to download one with git or CTRL+C to abort"
+    read tmp
+    if ! git clone https://github.com/m-tsudo/pt3.git; then
+       rm -fr pt3
+       echo "Faild to get a PT3 checkout"
+       exit 1;
+    fi
+    touch pt3/auto_pull
+fi
+
+#################################################
 #   compiler sanity check
 #################################################
 echolog "Checking for compiler available..."