瀏覽代碼

Merge pull request #42 from johndpope/patch-1

Updates to Runme.sh
Tim Burks 8 年之前
父節點
當前提交
ab296f6b87
共有 1 個文件被更改,包括 24 次插入2 次删除
  1. 24 2
      third_party/RUNME.sh

+ 24 - 2
third_party/RUNME.sh

@@ -1,5 +1,27 @@
 #!/bin/sh
+printf "\033c"
+read -p "Would you like to download and install swift-protobuf / grpc [y/N]" CONDITION;
+if [ "$CONDITION" == "y" ] ; then
+    read -p "Use last known stable branch - 0.9.24 ? or  latest master ? [S/l]  " CONDITION;
+    if [ "$CONDITION" == "l" ] ; then
+        git clone https://github.com/apple/swift-protobuf.git
+        cd swift-protobuf
+        make install
+        cd ..
+        git clone https://github.com/grpc/grpc.git
+        cd grpc
+        git submodule update --init
+        make install
+    else
+        git clone -b 0.9.24 https://github.com/apple/swift-protobuf.git
+        cd swift-protobuf
+        make install
+        cd ..
+        git clone https://github.com/grpc/grpc.git
+        cd grpc
+        git submodule update --init
+        make install
+    fi
+fi
 
-git clone -b 0.9.24 https://github.com/apple/swift-protobuf.git
-git clone https://github.com/grpc/grpc.git