]> git.proxmox.com Git - debcargo-conf.git/blame - dev/filter-crate-in-debian.sh
ssh2 - new upstream release.
[debcargo-conf.git] / dev / filter-crate-in-debian.sh
CommitLineData
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.
4set -e
5
6while 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"
10done