vyos-build/scripts/list-package-arch
Christian Poessinger 9c59725539 Add helper to list individual package architectues
Required for migration to a new Jenkins Pipeline to see which package requires
arm64/armhf builds and which are cross-platform.

$ scripts/list-package-arch
vyos-build
vyatta-bash              Architecture: any,
vyatta-cfg               Architecture: any,Architecture:any,Architecture: any,
vyatta-op                Architecture: all,
vyatta-cfg-system        Architecture: any,
vyatta-cfg-firewall      Architecture: all,

- 'all' is platform independent!
- 'any' is platform dependent!
2019-09-23 20:56:26 +02:00

8 lines
399 B
Bash
Executable File

#!/bin/bash
# Execute this script from the vyos-build top directory
# Will generate a list of architectures in each repository
for a in $(echo vyos-build; ./scripts/build-packages -l | egrep -e '^ \* ' | sed 's/^ \* //'); do
n=$(curl https://raw.githubusercontent.com/vyos/${a}/current/debian/control 2>/dev/null | grep "Architecture" | tr '\n' ',')
printf "%-24s %s \n" "${a}" "${n}"
done