summaryrefslogtreecommitdiffstats
path: root/punani/host/dist
diff options
context:
space:
mode:
Diffstat (limited to 'punani/host/dist')
-rwxr-xr-xpunani/host/dist/arch/getsize17
1 files changed, 17 insertions, 0 deletions
diff --git a/punani/host/dist/arch/getsize b/punani/host/dist/arch/getsize
new file mode 100755
index 00000000..a2ef8f95
--- /dev/null
+++ b/punani/host/dist/arch/getsize
@@ -0,0 +1,17 @@
+#! /bin/sh
+set -euf
+sed -n '
+ /^Name/{
+ s/^Name *: *\(.*\)$/\1/
+ T
+ h
+ }
+ /^Installed Size/{
+ s/^Installed Size *: *\(.*\)$/ \1/
+ T
+ H
+ x
+ s/\n//g
+ p
+ }
+' | awk '{print$2$3" "$1}' | sort -n