From 9c59725539cb0e6e0af718e847e58d8ee63f9737 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Mon, 23 Sep 2019 20:54:55 +0200 Subject: 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! --- scripts/list-package-arch | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 scripts/list-package-arch 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 -- cgit v1.2.3