1#! /usr/bin/env nix-shell
2#! nix-shell -i bash --pure -p androidsdk curl libxslt
3
4# this shows a list of available xmls
5android list sdk | grep 'Parse XML:' | cut -f8- -d\ # | xargs -n 1 curl -O
6
7# we skip the intel addons, as they are Windows+osX only
8# we skip the default sys-img (arm?) because it is empty
9curl -o repository-11.xml https://dl.google.com/android/repository/repository-11.xml
10curl -o addon.xml https://dl.google.com/android/repository/addon.xml
11curl -o sys-img.xml https://dl.google.com/android/repository/sys-img/android/sys-img.xml
12
13./generate-addons.sh
14./generate-platforms.sh
15./generate-sysimages.sh
16./generate-sources.sh