summaryrefslogtreecommitdiffstats
path: root/host/dist/arch
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-04 19:52:04 +0200
committermakefu <github@syntax-fehler.de>2011-08-04 19:52:04 +0200
commit25c8053e4e19965bf0dc3636317b4385f04c8c88 (patch)
treeef707ddacead70c724dbb5544528cdb2a23396aa /host/dist/arch
parenta8b76f1cc2740ccbddeb10b0f0ba31e52d8deb06 (diff)
parentfddac45f757b53f6d842257728ff0eb4758a40e6 (diff)
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'host/dist/arch')
-rwxr-xr-xhost/dist/arch/getsize17
1 files changed, 17 insertions, 0 deletions
diff --git a/host/dist/arch/getsize b/host/dist/arch/getsize
new file mode 100755
index 00000000..d099c9e2
--- /dev/null
+++ b/host/dist/arch/getsize
@@ -0,0 +1,17 @@
+#! /bin/sh
+set -euf
+sed -rn '
+ /^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