aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/templates/sync2010.1
blob: 5f8eeebfb061f13c8f86986352bb092a1edef40b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

if [ `whoami` != <%= sched_login %> ]
then
    echo 'this script should be run as <%= sched_login %>' >&2
    exit 1
fi

cd /distrib/mandriva/2010.1-mgaserv || exit 1
rsync -avH <%= build_login %>@jonund:/home/iurt/2010.1-SRPMS/ ./SRPMS

for i in i586 x86_64; do 
  mkdir -p $i
  cd $i
  rsync -avH <%= build_login %>@jonund:/home/iurt/iurt/mandriva2010.1/$i/*.rpm .
  ssh <%= build_login %>@jonund rm -f '/home/iurt/iurt/mandriva2010.1/$i/*.rpm'
  genhdlist2 .
  cd ..
done