]> git.proxmox.com Git - debcargo-conf.git/blob - dev/grant-dm-perms.sh
Merge branch 'pending-dns-parser'
[debcargo-conf.git] / dev / grant-dm-perms.sh
1 #!/bin/sh
2 # Grant DM upload permissions on all crates maintained by a DM.
3 #
4 # TODO: use uploaders when that feature gets into debcargo
5 # https://salsa.debian.org/rust-team/debcargo/issues/10
6
7 m="$1"
8 shift
9 grep -l "$m" src/*/debian/copyright \
10 | sed -nre 's,src/(.*)/debian/copyright,\1,gp' \
11 | dev/filter-in-debian.sh \
12 | sed -nre 's/^(.*)\s1$/rust-\1/gp' \
13 | xargs -r dcut "$@" dm --uid "$m" --allow