aboutsummaryrefslogtreecommitdiff
path: root/admin/masschangemaint
blob: 1c5dbdd949c36b32b2a1219cc8c4891df062dd52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

source ~/sbostuff/sbostuff.sh

if [ "$1" = "" ]; then
  echo "Builds to change?"
  read builds
  set $builds
fi

echo "New maintainer as [Real Name <email@addr>]?"
read maint
name="$( echo $maint | cut -d'<' -f1 | sed 's,  *$,,' )"
mail="$( echo $maint | cut -d'<' -f2 | cut -d'>' -f1 )"

echo "name: '$name'"
echo "mail: '$mail'"

export SBOLINT=no
for i in $*; do
  cdsb $i
  sbonewmaint "$name" "$mail"
  git commit -a -m'New maintainer'
done