summaryrefslogtreecommitdiff
path: root/scripts/list-package-arch
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/list-package-arch')
-rwxr-xr-xscripts/list-package-arch7
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