summaryrefslogtreecommitdiffstats
path: root/host/dist/arch/getsize
blob: d099c9e2be121e1cd1423a91c002df24590af2b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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