mirror of
https://github.com/t2linux/fedora.git
synced 2026-08-16 05:18:11 -07:00
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
19 lines
464 B
Bash
Executable File
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
|