Codebase list rust-stfu8 / debian/latest dev / grant-dm-perms.sh
debian/latest

Tree @debian/latest (Download .tar.gz)

grant-dm-perms.sh @debian/latest

87c0930
10c5bef
 
61211e4
 
 
 
 
a73c90d
 
f77a94c
 
 
e8aca34
bf0f8a3
a73c90d
#!/bin/bash
# Grant DM upload permissions on all crates maintained by a DM.

if [ "$#" -ne 1 ]; then
    echo "Syntax: $0 <email>"
    exit 1
fi

m="$1"
shift
grep -l "$m" src/*/debian/copyright src/*/debian/debcargo.toml \
| sed -nre 's,src/(.*)/debian/.*,\1,gp' \
| sort -u \
| dev/filter-package-in-debian.sh \
| sed -nre 's/^(.*)\s[1-9][0-9]*$/rust-\1/gp' \
| xargs -r dcut "$@" dm --uid "$m" --allow