File: check-dep-sizes.sh

package info (click to toggle)
diffoscope 177
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 6,340 kB
  • sloc: python: 14,727; makefile: 97; sh: 81; xml: 26; javascript: 2
file content (11 lines) | stat: -rwxr-xr-x 377 bytes parent folder | download | duplicates (8)
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'