mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-17 15:34:18 +08:00
Add script for checking for missing CI packages
This commit is contained in:
parent
7e3dea8107
commit
5f354a64e5
36
scripts/check-ci-config.sh
Executable file
36
scripts/check-ci-config.sh
Executable file
@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
if [ -n "$1" ]
|
||||
then
|
||||
ARCH="$1"
|
||||
else
|
||||
ARCH="x86_64"
|
||||
fi
|
||||
|
||||
make build/fstools
|
||||
|
||||
declare -A packages
|
||||
for recipe_dir in $(build/fstools/bin/list_recipes | grep -v '^recipes/wip/')
|
||||
do
|
||||
recipe_name="$(basename "${recipe_dir}")"
|
||||
packages["${recipe_name}"]="${recipe_dir}"
|
||||
done
|
||||
|
||||
config="config/${ARCH}/ci.toml"
|
||||
for package in $(build/fstools/bin/redox_installer --list-packages -c "${config}")
|
||||
do
|
||||
packages["${package}"]=""
|
||||
done
|
||||
|
||||
echo "Checking for missing packages in ${config}"
|
||||
printf '%-32s%s\n' "PACKAGE" "RECIPE"
|
||||
for package in "${!packages[@]}"
|
||||
do
|
||||
recipe_dir="${packages["${package}"]}"
|
||||
if [ -n "${recipe_dir}" ]
|
||||
then
|
||||
printf '%-32s%s\n' "${package}" "${recipe_dir}"
|
||||
fi
|
||||
done | sort
|
||||
Loading…
Reference in New Issue
Block a user