]> git.proxmox.com Git - debcargo-conf.git/blob - dev/grant-dm-perms.sh
Merge branches 'pending-parking-lot' and 'pending-syntex-errors'
[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 m="$1"
5 shift
6 grep -l "$m" src/*/debian/copyright src/*/debian/debcargo.toml \
7 | sed -nre 's,src/(.*)/debian/.*,\1,gp' \
8 | sort -u \
9 | dev/filter-in-debian.sh \
10 | sed -nre 's/^(.*)\s1$/rust-\1/gp' \
11 | xargs -r dcut "$@" dm --uid "$m" --allow