dev/grant-dm-perms: make it a bit more flexible
Ximin Luo
5 years ago
3 | 3 | # TODO: use uploaders when that feature gets into debcargo |
4 | 4 | # https://salsa.debian.org/rust-team/debcargo/issues/10 |
5 | 5 | |
6 | grep -l "$1" src/*/debian/copyright \ | |
6 | m="$1" | |
7 | shift | |
8 | grep -l "$m" src/*/debian/copyright \ | |
7 | 9 | | sed -nre 's,src/(.*)/debian/copyright,\1,gp' \ |
8 | 10 | | dev/filter-in-debian.sh \ |
9 | 11 | | sed -nre 's/^(.*)\s1$/rust-\1/gp' \ |
10 | | xargs -r dcut dm --uid "$1" --allow | |
12 | | xargs -r dcut "$@" dm --uid "$m" --allow |