Add script for granting DM permissions
Ximin Luo
5 years ago
0 | #!/bin/sh | |
1 | # Grant DM upload permissions on all crates maintained by a DM. | |
2 | # | |
3 | # TODO: use uploaders when that feature gets into debcargo | |
4 | # https://salsa.debian.org/rust-team/debcargo/issues/10 | |
5 | ||
6 | grep -l "$1" src/*/debian/copyright \ | |
7 | | sed -nre 's,src/(.*)/debian/copyright,\1,gp' \ | |
8 | | dev/filter-in-debian.sh \ | |
9 | | sed -nre 's/^(.*)\s1$/rust-\1/gp' \ | |
10 | | xargs -r dcut dm --uid "$1" --allow |