]>
Commit | Line | Data |
---|---|---|
e8aca343 XL |
1 | #!/bin/bash |
2 | # Filter list of crates by whether they're packaged in Debian. | |
3 | # You need to have an up-to-date APT cache for Debian unstable. | |
4 | set -e | |
5 | ||
6 | while read crate ver; do | |
7 | pkg="${crate//_/-}" | |
8 | numpkg="$(apt-cache showpkg "librust-$pkg-${ver:+${ver}-}dev" 2>/dev/null | grep "^Package: $fullpkg" | wc -l)" | |
9 | echo "$crate $ver $numpkg" | |
10 | done |