-
Notifications
You must be signed in to change notification settings - Fork 2
/
mashism-el
executable file
·44 lines (37 loc) · 1.18 KB
/
mashism-el
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
35
36
37
38
39
40
41
42
43
#!/bin/bash
#
# mashism-el
#
if [ x${HOSTNAME} != "xbodhi-backend01.online.rpmfusion.net" ] ; then
echo "$0: Wrong host: run on bodhi-backend01" && exit 2
fi
if [ getent group sysadmin-build $(id -nu) &>/dev/null ] ; then
echo "$0: You need to be in the sysadmin-build group to run this" && exit 4
fi
if [ ! $(id -ng) == "sysadmin-build" ] ; then
exec sg sysadmin-build $0
fi
# fix for rfbz#2142
export LANG=en_US.UTF-8
#DEBUG=1>/dev/null
umask 002
for n in free nonfree ; do
if [ -d /var/tmp/rpmfusion-${n}-comps ] ; then
pushd /var/tmp/rpmfusion-${n}-comps &>/dev/null
git remote update
git reset origin/master --hard
make
popd &>/dev/null
else
pushd /var/tmp &>/dev/null
git clone https://github.com/rpmfusion-infra/rpmfusion-${n}-comps
pushd rpmfusion-${n}-comps &>/dev/null
make
popd &>/dev/null
popd &>/dev/null
fi
for r in 8 9 ; do
sg sysadmin-build "mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf el${r} -f /var/tmp/rpmfusion-${n}-comps/comps-el${r}.xml $DEBUG"
sg sysadmin-build "mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf el${r}-testing -f /var/tmp/rpmfusion-${n}-comps/comps-el${r}.xml $DEBUG"
done
done