-
Notifications
You must be signed in to change notification settings - Fork 2
/
mashism
executable file
·45 lines (40 loc) · 1.49 KB
/
mashism
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
44
45
#!/bin/bash
#
# mashism
#
if [ x${HOSTNAME} != "xbodhi-backend01.online.rpmfusion.net" ] ; then
echo "Wrong host: run on bodhi-backend01" && exit 1
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 39 40 41; do
#mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf ${r}-updates-candidate $DEBUG
mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf ${r}-updates -f /var/tmp/rpmfusion-${n}-comps/comps-f${r}.xml $DEBUG
mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf ${r}-updates-testing -f /var/tmp/rpmfusion-${n}-comps/comps-f${r}.xml $DEBUG
done
#r=42
#mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf ${r}-updates-testing -f /var/tmp/rpmfusion-${n}-comps/comps-f${r}.xml $DEBUG
#mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf ${r}-branch -f /var/tmp/rpmfusion-${n}-comps/comps-f${r}.xml $DEBUG
r=42
mash -o /mnt/koji/mash/${n} -c /etc/mash/mash.${n}.conf rawhide -f /var/tmp/rpmfusion-${n}-comps/comps-devel.xml $DEBUG
done