Files
fedora/build-packages.sh
T
Sharpened Blade 8ddad58fcd Add support for building multiple packages
All packages passed as arguments will be built. The packages are
built sequentially, in order from first to last. It is recommended to
build the smallest packages first.

Merges https://github.com/t2linux/t2linux-fedora-kernel/pull/12
2023-07-28 15:59:52 +05:30

19 lines
464 B
Bash
Executable File

#!/usr/bin/bash
source /repo/util.sh
if [[ -z "$1" ]]; then
packages=""
echo "Available packages: t2linux-config, t2linux-repo, t2linux-config, or kernel"
read -p "What package(s) do you want to build: " -a packages
else
packages=( "$@" )
fi
for current_package in ${packages[@]}; do
if [ "$current_package" == "kernel" ]; then
/repo/kernel/kernel.sh
fi
cd /repo/$current_package
build_package $current_package.spec
done