From 3b04257c9f394c2fae181163d641f1c84c0b78af Mon Sep 17 00:00:00 2001 From: John Pope Date: Thu, 6 Apr 2017 10:40:44 -0400 Subject: [PATCH 1/2] Update RUNME.sh spoon feeding. --- third_party/RUNME.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/third_party/RUNME.sh b/third_party/RUNME.sh index 28b284ef5..a279a39ae 100755 --- a/third_party/RUNME.sh +++ b/third_party/RUNME.sh @@ -1,5 +1,15 @@ #!/bin/sh +printf "\033c" +read -p "Would you like to download and install swift-protobuf / grpc [y/N]" CONDITION; +if [ "$CONDITION" == "y" ] ; 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 +fi -git clone -b 0.9.24 https://github.com/apple/swift-protobuf.git -git clone https://github.com/grpc/grpc.git From 0c1c3bc7b8605ccf2e947ecc229e13049802294a Mon Sep 17 00:00:00 2001 From: John Pope Date: Thu, 6 Apr 2017 10:48:40 -0400 Subject: [PATCH 2/2] update runme.sh --- third_party/RUNME.sh | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/third_party/RUNME.sh b/third_party/RUNME.sh index a279a39ae..746c8381c 100755 --- a/third_party/RUNME.sh +++ b/third_party/RUNME.sh @@ -2,14 +2,26 @@ printf "\033c" read -p "Would you like to download and install swift-protobuf / grpc [y/N]" CONDITION; if [ "$CONDITION" == "y" ] ; 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 + 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