Skip to content

Commit 0c1c3bc

Browse files
authored
update runme.sh
1 parent 3b04257 commit 0c1c3bc

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

third_party/RUNME.sh

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,26 @@
22
printf "\033c"
33
read -p "Would you like to download and install swift-protobuf / grpc [y/N]" CONDITION;
44
if [ "$CONDITION" == "y" ] ; then
5-
git clone https://github.com/apple/swift-protobuf.git
6-
cd swift-protobuf
7-
make install
8-
cd ..
9-
git clone https://github.com/grpc/grpc.git
10-
cd grpc
11-
git submodule update --init
12-
make install
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
1325
fi
1426

1527

0 commit comments

Comments
 (0)