Skip to content

Commit 7f7b55e

Browse files
committed
Updating build.sh in ButtonClicker sample using build_sample.sh
Bug: b/19129183 Change-Id: I5b0180d1e6e1be654e7e906447f8bfa54d8cea47
1 parent a271740 commit 7f7b55e

File tree

1 file changed

+4
-21
lines changed

1 file changed

+4
-21
lines changed
Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
#!/bin/sh
2+
set -eua
23

3-
#setup build mode
4-
mode=$1
5-
if [ -z $1 ] ; then
6-
echo “Default build mode: debug”
7-
mode=debug
8-
fi
9-
10-
#build library project
11-
echo “Switching to google-play-services_lib”
12-
13-
pushd ../../google-play-services_lib/
14-
android update lib-project --path .
15-
ant $mode
16-
popd
17-
18-
#Create ant
19-
echo “Updating ANT build settings”
20-
android update project --path .
21-
22-
#Execute ndk-build && ant
23-
ndk-build && ant $mode
4+
declare -r script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
pushd "${script_dir}"
6+
source ../build_sample.sh
247

0 commit comments

Comments
 (0)