RUNME.sh 803 B

123456789101112131415161718192021222324252627
  1. #!/bin/sh
  2. printf "\033c"
  3. read -p "Would you like to download and install swift-protobuf / grpc [y/N]" CONDITION;
  4. if [ "$CONDITION" == "y" ] ; then
  5. read -p "Use last known stable branch - 0.9.24 ? or latest master ? [S/l] " CONDITION;
  6. if [ "$CONDITION" == "l" ] ; then
  7. git clone https://github.com/apple/swift-protobuf.git
  8. cd swift-protobuf
  9. make install
  10. cd ..
  11. git clone https://github.com/grpc/grpc.git
  12. cd grpc
  13. git submodule update --init
  14. make install
  15. else
  16. git clone -b 0.9.24 https://github.com/apple/swift-protobuf.git
  17. cd swift-protobuf
  18. make install
  19. cd ..
  20. git clone https://github.com/grpc/grpc.git
  21. cd grpc
  22. git submodule update --init
  23. make install
  24. fi
  25. fi