dev/grant-dm-perms: take into account uploaders from debcargo.toml too
Ximin Luo
5 years ago
0 | 0 | #!/bin/sh |
1 | 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 | 2 | |
6 | 3 | m="$1" |
7 | 4 | shift |
8 | grep -l "$m" src/*/debian/copyright \ | |
9 | | sed -nre 's,src/(.*)/debian/copyright,\1,gp' \ | |
5 | grep -l "$m" src/*/debian/copyright src/*/debian/debcargo.toml \ | |
6 | | sed -nre 's,src/(.*)/debian/.*,\1,gp' \ | |
7 | | sort -u \ | |
10 | 8 | | dev/filter-in-debian.sh \ |
11 | 9 | | sed -nre 's/^(.*)\s1$/rust-\1/gp' \ |
12 | 10 | | xargs -r dcut "$@" dm --uid "$m" --allow |