Files
agnos-builder/internal/build_and_package.sh
T
2022-09-23 13:05:32 -07:00

23 lines
544 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.sh