Sign in
go
/
talks
/
b5e3dae737a7b20e43c3a39637e208688fccf66f
/
.
/
2015
/
gophercon-go-on-mobile
/
demo2.bash
blob: d377162e12ab3bf1180c05a2adbf45b6fb55e0af [
file
] [
log
] [
blame
]
#!/bin/bash
prompt
()
{
read
-
p
"$1"
}
declare
-
a arr
=(
"cd mypkg"
"tree"
"cat mypkg.go"
"export ANDROID_HOME=${ANDROID_HOME}"
"gomobile bind ."
"tree"
"unzip -l mypkg.aar"
)
for
i
in
"${arr[@]}"
do
prompt
"\$ $i"
$i
echo
done
rm mypkg
.
aar