Skip to content

Commit 6efe959

Browse files
committed
make generate_project do a single platform
1 parent fd871f8 commit 6efe959

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

GoogleDataTransport/generate_project.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@
1616
#
1717

1818
# From https://stackoverflow.com/questions/59895/getting-the-source-directory-of-a-bash-script-from-within
19+
20+
# USAGE: build.sh [platform]
21+
# platform is ios, macos, or tvos
22+
23+
platform="ios"
24+
if [[ $# -gt 0 ]]; then
25+
platform="$1"
26+
fi
27+
28+
echo $platform
29+
1930
readonly DIR="$(git rev-parse --show-toplevel)"
2031

2132
"$DIR/GoogleDataTransport/ProtoSupport/generate_cct_protos.sh" || echo "Something went wrong generating protos.";
2233

23-
pod gen "$DIR/GoogleDataTransport.podspec" --auto-open --gen-directory="$DIR/gen" --platforms=ios,macos,tvos --clean
34+
pod gen "$DIR/GoogleDataTransport.podspec" --auto-open --gen-directory="$DIR/gen" --platforms=${platform} --clean

0 commit comments

Comments
 (0)