diff options
author | makefu <github@syntax-fehler.de> | 2011-08-04 19:52:04 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2011-08-04 19:52:04 +0200 |
commit | 082a2ed2761ea1dd3bd0a30d2109962ef29377f4 (patch) | |
tree | 70c1a0d04467d929bc24dad2201e024e6359fa57 /host/dist | |
parent | fba4d3c738a73d8f3ea05fbec7ee0b51da1ef854 (diff) | |
parent | bb394845aa08007d3c947ff0ef50e84badefd903 (diff) |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'host/dist')
-rwxr-xr-x | host/dist/arch/getsize | 17 |
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 |