Files
agnos-builder/internal/build_and_package.sh
T
Adeeb Shihadeh 36fc190bc8 include simg2dontcare image in manifest (#170)
Co-authored-by: Cameron Clough <cameronjclough@gmail.com>
2023-08-21 17:47:37 +01:00

24 lines
573 B
Bash
Executable File

#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR/..
read -p "Is the kernel repo up to date? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Update it and run again!"
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
fi
read -p "Is the firmware repo up to date? Copied in the new abl if needed? " -n 1 -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo "Update it and run again!"
[[ "$0" = "$BASH_SOURCE" ]] && exit 1 || return 1
fi
./build_kernel.sh
./build_system.sh
internal/package_ota.py
internal/ota_push.sh staging