diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-09-23 20:54:55 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-09-23 20:56:26 +0200 |
commit | 9c59725539cb0e6e0af718e847e58d8ee63f9737 (patch) | |
tree | cb6aeb881c163ba617cd76aaa9a69fb1745dd796 | |
parent | ae5e390d84c19faa3886dc4370213fd52a5ee867 (diff) | |
download | vyos-build-9c59725539cb0e6e0af718e847e58d8ee63f9737.tar.gz vyos-build-9c59725539cb0e6e0af718e847e58d8ee63f9737.zip |
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!
-rwxr-xr-x | scripts/list-package-arch | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/list-package-arch b/scripts/list-package-arch new file mode 100755 index 00000000..10ac02d3 --- /dev/null +++ b/scripts/list-package-arch @@ -0,0 +1,7 @@ +#!/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 |