2021-01-15 22:18:51 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
2023-05-24 13:37:59 +00:00
|
|
|
#!nix-shell -i bash -p "ruby.withPackages (pkgs: with pkgs; [ slop nokogiri moreutils ])"
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
pushd "$(dirname "$0")" &>/dev/null || exit 1
|
|
|
|
|
|
|
|
echo "Writing repo.json" >&2
|
2023-05-24 13:37:59 +00:00
|
|
|
cat ./repo.json | ruby mkrepo.rb \
|
2021-01-15 22:18:51 +00:00
|
|
|
--packages ./xml/repository2-1.xml \
|
|
|
|
--images ./xml/android-sys-img2-1.xml \
|
|
|
|
--images ./xml/android-tv-sys-img2-1.xml \
|
|
|
|
--images ./xml/android-wear-cn-sys-img2-1.xml \
|
|
|
|
--images ./xml/android-wear-sys-img2-1.xml \
|
|
|
|
--images ./xml/google_apis-sys-img2-1.xml \
|
|
|
|
--images ./xml/google_apis_playstore-sys-img2-1.xml \
|
2023-05-24 13:37:59 +00:00
|
|
|
--addons ./xml/addon2-1.xml \
|
|
|
|
| sponge repo.json
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
popd &>/dev/null
|