aboutsummaryrefslogtreecommitdiff
path: root/admin/masschangemaint
blob: 3b7376e1648106fdb905d7d63d6f390f18037ac7 (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
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

SELF="$( basename $0 )"

if [ "$1" = "--help" ]; then
cat <<EOF
$SELF - change maintainer of one or more SlackBuilds
EOF
  exit 0
fi

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'"

# TODO: fix this so it doesn't rely on my private git hook!
export SBOLINT=no
for i in $*; do
  cdsb $i
  sbonewmaint "$name" "$mail"
  git commit -a -m'New maintainer'
done