Skip to content

Commit 1c017a9

Browse files
committed
add build-releases script
1 parent e804251 commit 1c017a9

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

build-releases

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
source build/envsetup.sh
4+
5+
if [[ $HOSTNAME == raphael ]]; then
6+
readonly devices=(comet tokay shiba lynx bluejay)
7+
elif [[ $HOSTNAME = raptor ]]; then
8+
readonly devices=(komodo akita felix cheetah raven)
9+
elif [[ $HOSTNAME = vermeer ]]; then
10+
readonly devices=(caiman husky tangorpro panther oriole)
11+
else
12+
echo invalid hostname >&2
13+
exit 1
14+
fi
15+
16+
for device in ${devices[@]}; do
17+
rm -rf out || exit 1
18+
lunch $device-cur-user || exit 1
19+
if [[ $device = @(bluejay|raven|oriole) ]]; then
20+
m vendorbootimage target-files-package otatools-package || exit 1
21+
else
22+
m vendorbootimage vendorkernelbootimage target-files-package otatools-package || exit 1
23+
fi
24+
script/finalize.sh || exit 1
25+
rm -rf out || exit 1
26+
done

0 commit comments

Comments
 (0)