Codebase list rust-stfu8 / f77a94c
dev/grant-dm-perms: take into account uploaders from debcargo.toml too Ximin Luo 5 years ago
1 changed file(s) with 3 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
00 #!/bin/sh
11 # 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
52
63 m="$1"
74 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 \
108 | dev/filter-in-debian.sh \
119 | sed -nre 's/^(.*)\s1$/rust-\1/gp' \
1210 | xargs -r dcut "$@" dm --uid "$m" --allow