File: check-dep-sizes.sh

package info (click to toggle)
diffoscope 78%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,520 kB
  • sloc: python: 7,903; makefile: 58; sh: 58
file content (11 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# Check sizes of diffoscope's dependencies (including recommends)
# Give ~i to only list packages installed on your system.
pkg=diffoscope
d=~R
r=~Rrecommends:
LC_ALL=C aptitude search "($d$pkg|$r$pkg|$d$d$pkg|$d$r$pkg|$r$d$pkg|$r$r$pkg) $1" \
  --disable-columns -F '%I %p' \
  | sed -e 's/ kB / KB /g' \
  | LC_ALL=C sort -k2,2 -k1n,1n \
  | sed -e 's/ KB / kB /g'