fix error on empty schedule.d
[os-autoinst:opensuse.git] / Makefile
1 L=video/runlog.txt
2 newdays=2
3 d=$(shell date +%Y%m%d)
4 #bwlimit=--bwlimit=1500
5 #excludes=--exclude="*.zsync" --exclude="*DVD*" 
6 #excludes+=--exclude="*GNOME*"
7 #excludes+=--exclude="*i686*"
8 #excludes+=--exclude="*KDE*"
9 excludes+=--exclude="*Addon*"
10 #repoexcludes=--exclude="texlive*"
11 #--max-delete=4000
12 #repoexcludes+=--exclude="x86_64"
13 #rsyncserver=rsync.opensuse.org
14 repourl=http://widehat.opensuse.org/repositories/
15 rsyncserver=stage.opensuse.org
16 dvdpath=/factory-all-dvd/iso/
17 testdir=pool/manual
18 buildnr=$(shell cat factory-testing/repo/oss/media.1/build)
19 testedbuildnr=$(shell cat factory-tested/repo/oss/media.1/build)
20 #dvdpath=/factory-all-dvd/11.3-isos/
21
22 all: sync prune list
23 cron: reposync sync prune prune2 newvideos
24 syncall: reposync sync gnomesync dvdsync promosync biarchsync
25
26 sync:
27         for i in $(seq 1 36) ; do scripts/preparersync ; done
28         withlock sync.lock rsync -aPHv ${bwlimit} ${excludes} rsync://${rsyncserver}/opensuse-full-with-factory/opensuse/factory/iso/ factory/iso/
29
30 prune:
31         -find liveiso/ factory/iso/ -type f -name \*.iso -atime +90 -mtime +90 -print0 | xargs --no-run-if-empty -0 rm -f
32         make resultarchive
33         -find testresults/ -atime +15 -mtime +25 -name \*.ppm -print0 | xargs --no-run-if-empty -0 gzip -9
34         -find testresults/ video/ logs/ -type f -atime +100 -mtime +150 -print0 | xargs --no-run-if-empty -0 rm -f
35         -df testresults/ |grep -q "9[0-9]%" && find testresults/ video/ -type f -atime +15 -mtime +25 |sort|perl -ne 'if(($$n++%2)==0){print}' | xargs --no-run-if-empty rm -f
36
37 prune2: dvdprune
38         -df factory/iso/|grep -q "9[0-9]%" && find factory/iso/ -type f -mtime +20 -name "*.iso" |sort|perl -ne 'if(($$n++%2)==0){print}' | xargs --no-run-if-empty rm -f 
39 dvdprune:
40         -df factory/iso/|grep -q "[8-9][0-9]%" &&find factory/iso/ -name "*-DVD-*.iso" -mtime +3 |sort|perl -ne 'if(($$n++%2)==0){print}' | xargs --no-run-if-empty rm -f
41         -df testresults/ |grep -q "9[0-9]%" && find testresults/ -type f -mtime +37 |sort|perl -ne 'if(($$n++%2)==0){print}' | xargs --no-run-if-empty rm -f
42
43 prune3: 
44         # only keep latest NET iso of each arch
45         #find factory/iso/ -name "*-NET-*"|sort -t- -k4| perl -ne '...'
46
47 testloop:
48         rm -f stopfile
49         tools/testloop
50 updatechangedb:
51         cd changedb ; find /opensuse/factory/repo/oss/ -mtime -7 -name \*.rpm | ./recentchanges.pl
52
53 recheck:
54         cd perl/autoinst/ ; tools/rechecklog ../../video/$t.ogv.autoinst.txt
55 deleteresult:
56         rm -f video/$t.ogv
57         rm -f video/$t.ogv.autoinst.txt
58         test -n "$t" && rm -rf testresults/$t
59 renameresult:
60         mv -f video/$f.ogv video/$t.ogv
61         mv -f video/$f.ogv.autoinst.txt video/$t.ogv.autoinst.txt
62         mv -f testresults/$f testresults/$t
63 renamenetresults:
64         n=`perl -e '$$_="${buildnr}";s/.*Build(\d+)/$$1/;print;'` ; echo $$n ;\
65         make renameresult f=openSUSE-NET-i586-Build$f t=openSUSE-NET-i586-Build$f+$$n ;\
66         make renameresult f=openSUSE-NET-x86_64-Build$f t=openSUSE-NET-x86_64-Build$f+$$n
67         
68
69 list:
70         ls factory/iso/*Build*.iso
71 status:
72         ls factory-testing/iso/openSUSE-*x86_64-*
73         cat factory*/repo/oss/media.1/build factory-tested/repo/oss/media.1/media /var/tmp/lastfactorysnapshotisobuildnr
74         @echo
75
76 debiansync:
77         wget -q -Ofactory/iso/debian-netinst-i386-testing-Media.iso http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso
78         wget -q -Ofactory/iso/debian-bc-i386-testing-Media.iso http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-businesscard.iso
79         wget -q -Ofactory/iso/debian-netinst-amd64-testing-Media.iso http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/amd64/iso-cd/debian-testing-amd64-netinst.iso
80
81 fedorasync:
82         wget -q -Ofactory/iso/fedora-netinst-i386-16-Media.iso http://mirror.fraunhofer.de/download.fedora.redhat.com/fedora/linux/releases/16/Fedora/i386/os/images/boot.iso
83
84 archlinuxsync: archbuild=$(shell curl -s http://releng.archlinux.org/isos/ | grep "Directory" | tail -n1 | sed -e 's#.*\/">\(.*\)<\/a>.*#\1#')
85 archlinuxsync: archbuild_local=$(shell echo -n $(archbuild) | awk -F '_' '{print $$1}')
86 archlinuxsync:
87         wget -q -Ofactory/iso/archlinux-core-i686.iso http://releng.archlinux.org/isos/$(archbuild)/archlinux-$(archbuild)-core-i686.iso
88         #wget -q -Ofactory/iso/archlinux-core-i686-$(archbuild_local).iso http://releng.archlinux.org/isos/$(archbuild)/archlinux-$(archbuild)-core-i686.iso
89         #wget -q -Ofactory/iso/archlinux-core-x86_64-$(archbuild_local).iso http://releng.archlinux.org/isos/$(archbuild)/archlinux-$(archbuild)-core-x86_64.iso
90         #wget -q -Ofactory/iso/archlinux-netinst-i686-$(archbuild_local).iso http://releng.archlinux.org/isos/$(archbuild)/archlinux-$(archbuild)-netinstall-i686.iso
91         wget -q -Ofactory/iso/archlinux-netinst-x86_64.iso http://releng.archlinux.org/isos/$(archbuild)/archlinux-$(archbuild)-netinstall-x86_64.iso
92
93 dvdsync:
94         -rsync -aPHv ${bwlimit} --exclude="*Biarch*" rsync://${rsyncserver}${dvdpath}openSUSE-DVD-*.iso factory/iso/
95 promosync:
96         rsync -aPHv ${bwlimit} rsync://${rsyncserver}${dvdpath}openSUSE-Promo-*.iso factory/iso/
97 biarchsync:
98         rsync -aPHv ${bwlimit} rsync://${rsyncserver}${dvdpath}openSUSE-DVD-Biarch-*.iso factory/iso/
99
100 #dvdsync:
101 #       curl -n https://api.opensuse.org/build/openSUSE:Factory/images/local/_product:openSUSE-dvd5-dvd-i586/
102
103 ftpsync:
104         wget -nc -np -r http://ftp.gwdg.de/pub/opensuse/factory/iso/
105         rm -f factory/iso/index.html*
106
107 gnomesync:
108         rsync -aPHv ${bwlimit} rsync://${rsyncserver}/opensuse-full-with-factory/opensuse/factory/iso/*GNOME*.iso factory/iso/
109
110 getkdeunstable:
111         wget -r -nc -np --accept "KDE4-UNSTABLE-Live*.iso" ${repourl}KDE:/Medias/images/iso/ #KDE4-UNSTABLE-Live.x86_64-4.5.77-Build2.3.iso
112         tools/niceisonames widehat.opensuse.org/repositories/KDE:/Medias/images/iso/*.iso
113 getsmeegol:
114         wget -r -nc -np --accept "Smeegol*.iso" ${repourl}Meego:/Netbook:/1.1/images/iso/
115         tools/niceisonames widehat.opensuse.org/repositories/Meego:/Netbook:/1.1/images/iso/*.iso
116
117
118 zsync:  
119         for type in NET KDE-LiveCD ; do \
120                 for arch in i586 i686 x86_64 ; do \
121                         x=`scripts/latestiso $$arch $$type`; test -z "$$x" || ln -f $$x factory/iso/openSUSE-$$type-$$arch-current-Media.iso ;\
122                 done ;\
123         done
124         $(MAKE) -C factory/iso/ -f ../../make/zsync.mk
125         scripts/removeoldzsync
126
127 reposync:
128         mkdir -p factory/repo/oss/suse/
129         # first sync all big files without deleting. This keeps consistency
130         # another sync in case server changed during first long sync
131         for i in 1 2 3 ; do date=$$(date +%s) ; withlock reposync.lock rsync -aH ${bwlimit} ${repoexcludes} rsync://${rsyncserver}/opensuse-full-with-factory/opensuse/factory/repo/oss/suse/ factory/repo/oss/suse/ ; test $$(date +%s) -le $$(expr $$date + 200) && break ; done
132         # copy meta-data ; delete old files as last step
133         -rsync -aPHv --delete-after ${repoexcludes} rsync://${rsyncserver}/opensuse-full-with-factory/opensuse/factory/repo/ factory/repo/
134 preparesnapshot: sync reposync dvdsync updatechangedb
135         mkdir -p factory-testing/repo/
136         rsync -aSHPv --delete-after --link-dest=../factory/ rsync://${rsyncserver}/opensuse-full-with-factory/opensuse/factory/ factory-testing/
137         make status
138
139 snapshot:
140         mkdir -p factory-tested/repo/
141         # link-dest is relative to dest dir
142         rsync -aH --delete-after --link-dest=../factory-testing/ factory-testing/ factory-tested/
143         tools/updateisobuildnr
144
145 resultarchive:
146         mkdir -p archive/
147         ln -f video/*.autoinst.txt archive/
148
149
150 ISOS=$(shell ls factory/iso/*Build*-Media.iso)
151
152 NEWISOS=$(shell find factory/iso/ -name "*[DN][VE][DT]*Build*-Media.iso" -mtime -$(newdays)|sort -r -t- -k4|head -8 ; find factory/iso/ -name "*LiveCD*Build*-Media.iso" -mtime -$(newdays)|sort -r -t- -k5|head -4 ; find factory/iso/ -name "archlinux-*.iso" -mtime -$(newdays)|sort -r -t- -k5|head -4)
153 # it is enough to test one i586+x86_64 NET-iso
154 NEWNETISOS=$(shell find factory/iso/ -name "*NET*Build*-Media.iso" -mtime -${newdays}|sort -r -t- -k4|head -2 ; find factory/iso/ -name "*DVD*Build*-Media.iso" -mtime -${newdays})
155 OGGS=$(patsubst factory/iso/%-Media.iso,video/%.ogv,$(ISOS))
156 NEWOGGS=$(patsubst factory/iso/%-Media.iso,video/%.ogv,$(NEWISOS)) $(patsubst factory/iso/%-Media.iso,video/%-gnome.ogv,$(NEWNETISOS)) $(patsubst factory/iso/%-Media.iso,video/%-lxde.ogv,$(NEWNETISOS))
157 scheduledvideos=$(patsubst %,video/%.ogv,$(shell cd schedule.d/ ; ls ))
158 allvideos: $(OGGS)
159 newvideos: $(NEWOGGS) Tumbleweed-kde64 Tumbleweed-gnome32 debian archlinux $(scheduledvideos)
160 newlxdevideos: $(patsubst factory/iso/%-Media.iso,video/%-lxde.ogv,$(NEWNETISOS))
161 newxfcevideos: $(patsubst factory/iso/%-Media.iso,video/%-xfce.ogv,$(NEWNETISOS))
162 newgnomevideos: $(patsubst factory/iso/%-Media.iso,video/%-gnome.ogv,$(NEWNETISOS))
163
164 video/%.ogv: factory/iso/%-Media.iso
165         in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
166
167 video/%-doc.ogv: factory/iso/%-Media.iso
168         DOCRUN=1 QEMUVGA=std in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
169 video/%-de.ogv: factory/iso/%-Media.iso
170         DOCRUN=1 INSTLANG=de_DE QEMUVGA=std in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
171 video/%-lxde.ogv: factory/iso/%-Media.iso
172         export DESKTOP=lxde ; LVM=1 EXTRANAME=-$$DESKTOP in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
173
174 video/%-xfce.ogv: factory/iso/%-Media.iso
175         export DESKTOP=xfce ; EXTRANAME=-$$DESKTOP in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
176 video/%-gnome.ogv: factory/iso/%-Media.iso
177         export DESKTOP=gnome ; LVM=1 EXTRANAME=-$$DESKTOP in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
178 video/%-minimalx.ogv: factory/iso/%-Media.iso
179         export DESKTOP=minimalx ; EXTRANAME=-$$DESKTOP in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
180 video/%-smp.ogv: factory/iso/%-Media.iso
181         QEMUCPUS=4 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
182 video/%-textmode.ogv: factory/iso/%-Media.iso
183         export DESKTOP=textmode ; VIDEOMODE=text EXTRANAME=-$$DESKTOP in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
184 video/%-usbboot.ogv: factory/iso/%-Media.iso
185         USBBOOT=1 LIVETEST=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
186 video/%-usbinst.ogv: factory/iso/%-Media.iso
187         USBBOOT=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
188 video/%-nice.ogv: factory/iso/%-Media.iso
189         NICEVIDEO=1 DOCRUN=1 REBOOTAFTERINSTALL=0 SCREENSHOTINTERVAL=0.25 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
190 video/%-live.ogv: factory/iso/%-Media.iso
191         LIVETEST=1 REBOOTAFTERINSTALL=0 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
192 video/%-RAID0.ogv: factory/iso/%-Media.iso
193         export RAIDLEVEL=`echo $@ | sed 's/.*RAID\([0-9]*\)\.ogv$$/\1/'` ; in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
194 video/%-RAID1.ogv: factory/iso/%-Media.iso
195         export RAIDLEVEL=`echo $@ | sed 's/.*RAID\([0-9]*\)\.ogv$$/\1/'` ; in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
196 video/%-RAID10.ogv: factory/iso/%-Media.iso
197         export RAIDLEVEL=10 ; in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
198 video/%-RAID5.ogv: factory/iso/%-Media.iso
199         export RAIDLEVEL=5 ; in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
200 video/%-splitusr.ogv: factory/iso/%-Media.iso
201         SPLITUSR=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
202 video/%-cryptlvm.ogv: factory/iso/%-Media.iso
203         REBOOTAFTERINSTALL=0 ENCRYPT=1 LVM=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
204 video/%-btrfscryptlvm.ogv: factory/iso/%-Media.iso
205         BTRFS=1 ENCRYPT=1 LVM=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
206
207 # Debian
208 debian: debian-32 debian-64
209 debian-32: video/debian-netinst-i386-testing_$d.ogv video/debian-bc-i386-testing_$d.ogv
210 debian-64: video/debian-netinst-amd64-testing_$d.ogv video/debian-netinst-amd64-sid_$d.ogv
211 video/debian-%_$d.ogv: factory/iso/debian-%-Media.iso
212         HTTPPROXY=10.0.2.2:3128 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
213 video/debian-%sid_$d.ogv: factory/iso/debian-%testing-Media.iso
214         HTTPPROXY=10.0.2.2:3128 SID=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
215
216 # Fedora
217 fedora: fedora-32
218 fedora-32: video/fedora-netinst-i386-16_$d.ogv 
219 #video/fedora-netinst-i386-rawhide_$d.ogv
220 video/fedora-%_$d.ogv: factory/iso/fedora-%-Media.iso
221         QEMUVGA=cirrus DISTRI=fedora-16 HTTPPROXY=10.0.2.2:3128 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
222 video/fedora-%rawhide_$d.ogv: factory/iso/fedora-%16-Media.iso
223         RAWHIDE=1 QEMUVGA=cirrus DISTRI=fedora-16 HTTPPROXY=10.0.2.2:3128 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
224
225 # Arch
226 archlinux: archlinux-32 archlinux-64
227 archlinux-32: video/archlinux-core-i686-$d.ogv
228 archlinux-64: video/archlinux-netinst-x86_64-$d.ogv
229 #archlinux-64: video/archlinux-core-x86_64-$d.ogv video/archlinux-netinst-x86_64-$d.ogv
230 video/archlinux-%-$d.ogv: factory/iso/archlinux-%.iso
231         HTTPPROXY=10.0.2.2:3128 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
232
233 Tumbleweed-gnome32: video/openSUSE-Tumbleweed-i586-$d-11.4gnome32.ogv
234 video/openSUSE-Tumbleweed-i586-$d-11.4gnome32.ogv: distribution/11.4/iso/openSUSE-DVD-i586-11.4dummy.iso
235         export ZDUPREPOS=http://download.opensuse.org/repositories/openSUSE:/Tumbleweed:/Testing/openSUSE_Tumbleweed_standard/ export UPGRADE=/space2/opensuse/img/opensuse-11.4-gnome-32.img ; TUMBLEWEED=1 NOINSTALL=1 ZDUP=1 DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
236 Tumbleweed-kde64: video/openSUSE-Tumbleweed-x86_64-$d-11.4kde64.ogv
237 video/openSUSE-Tumbleweed-x86_64-$d-11.4kde64.ogv: distribution/11.4/iso/openSUSE-DVD-x86_64-11.4dummy.iso
238         export ZDUPREPOS=http://download.opensuse.org/repositories/openSUSE:/Tumbleweed:/Testing/openSUSE_Tumbleweed_standard/ export UPGRADE=/space2/opensuse/img/opensuse-11.4-kde-64.img ; TUMBLEWEED=1 NOINSTALL=1 ZDUP=1 DESKTOP=kde KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
239 video/%-12.1gnome32dup.ogv: factory/iso/%-Media.iso
240         export UPGRADE=/space2/opensuse/img/opensuse-12.1-gnome-32.img ; DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
241 video/%-12.1gnome32zdup.ogv: factory/iso/%-Media.iso
242         export UPGRADE=/space2/opensuse/img/opensuse-12.1-gnome-32.img ; NOINSTALL=1 ZDUP=1 DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
243 video/%-11.4kde64zdup.ogv: factory/iso/%-Media.iso
244         export UPGRADE=/space2/opensuse/img/opensuse-11.4-kde-64.img ; NOINSTALL=1 ZDUP=1 DESKTOP=kde KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
245 video/%-11.4kde64dup.ogv: factory/iso/%-Media.iso
246         export UPGRADE=/space2/opensuse/img/opensuse-11.4-kde-64.img ; DESKTOP=kde KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
247 video/%-11.4gnome32zdup.ogv: factory/iso/%-Media.iso
248         export UPGRADE=/space2/opensuse/img/opensuse-11.4-gnome-32.img ; NOINSTALL=1 ZDUP=1 DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
249 video/%-11.4gnome32dup.ogv: factory/iso/%-Media.iso
250         export UPGRADE=/space2/opensuse/img/opensuse-11.4-gnome-32.img ; DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
251 video/%-11.4ms5gnomedup.ogv: factory/iso/%-Media.iso
252         export UPGRADE=/space2/opensuse/img/opensuse-11.4-ms5-gnome-64.img ; DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
253 video/%-11.3gnomedup.ogv: factory/iso/%-Media.iso
254         export UPGRADE=/space/bernhard/img/opensuse-113-64-gnome.img ; DESKTOP=gnome KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
255 video/%-11.3zdup.ogv: factory/iso/%-Media.iso
256         export UPGRADE=/space2/opensuse/img/opensuse-11.3-32.img ; NOINSTALL=1 ZDUP=1 DESKTOP=kde KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
257 video/%-11.3dupb.ogv: factory/iso/%-Media.iso
258         export UPGRADE=/space2/tmp/opensuse-113-32-updated.img ; KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
259 video/%-11.3dup.ogv: factory/iso/%-Media.iso
260         export UPGRADE=/space2/opensuse/img/opensuse-11.3-32.img ; KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
261 video/%-11.2zdup.ogv: factory/iso/%-Media.iso
262         export UPGRADE=/space/bernhard/img/opensuse-112-64.img ; NOINSTALL=1 ZDUP=1 DESKTOP=kde in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
263 video/%-11.2dup.ogv: factory/iso/%-Media.iso
264         export UPGRADE=/space/bernhard/img/opensuse-112-64.img ; in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
265 video/%-11.1dup.ogv: factory/iso/%-Media.iso
266         export UPGRADE=/space/bernhard/img/opensuse-111-64.img ; HDDMODEL=ide KEEPHDDS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
267
268 video/%-basesystemdevel.ogv: factory/iso/%-Media.iso
269         ADDONURL=${repourl}Base:/System/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
270 video/%-zyppdevel.ogv: factory/iso/%-Media.iso
271         ADDONURL=${repourl}zypp:/Head/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
272 video/%-yastdevel.ogv: factory/iso/%-Media.iso
273         ADDONURL=${repourl}YaST:/Head/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
274 video/%-kerneldevel.ogv: factory/iso/%-Media.iso
275         ADDONURL=${repourl}Kernel:/HEAD/standard/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
276 video/%-mozilladevel.ogv: factory/iso/%-Media.iso
277         BIGTEST=1 DESKTOP=gnome ADDONURL=${repourl}mozilla:/beta/SUSE_Factory/+${repourl}LibreOffice:/Unstable/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
278 video/%-xorgdevel.ogv: factory/iso/%-Media.iso
279         ADDONURL=${repourl}X11:/XOrg/openSUSE_Factory/ LVM=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
280         #ADDONURL=${repourl}X11:/XOrg/openSUSE_Factory/+${repourl}Kernel:/HEAD/openSUSE_Factory/ LVM=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
281 video/%-kdeplaygrounddevel.ogv: factory/iso/%-Media.iso
282         ADDONURL=${repourl}KDE:/Unstable:/Playground/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
283 video/%-kdedevel.ogv: factory/iso/%-Media.iso
284         ADDONURL=${repourl}KDE:/Distro:/Factory/openSUSE_Factory/+${repourl}LibreOffice:/Unstable/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
285 video/%-gnomedevel.ogv: factory/iso/%-Media.iso
286         DESKTOP=gnome ADDONURL=${repourl}GNOME:/Factory/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
287 video/%-xfcedevel.ogv: factory/iso/%-Media.iso
288         DESKTOP=xfce ADDONURL=${repourl}X11:/xfce/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
289 video/%-lxdedevel.ogv: factory/iso/%-Media.iso
290         DESKTOP=lxde ADDONURL=${repourl}X11:/lxde/openSUSE_Factory/ in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
291 video/%-btrfs.ogv: factory/iso/%-Media.iso
292         BTRFS=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
293 video/%-se.ogv: factory/iso/%-Media.iso
294         INSTLANG=sv_SE in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
295 video/%-es.ogv: factory/iso/%-Media.iso
296         INSTLANG=es_ES in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
297 video/%-dk.ogv: factory/iso/%-Media.iso
298         INSTLANG=da_DK in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
299 video/%-64.ogv: factory/iso/%-Media.iso
300         QEMUCPU=qemu64 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
301 video/openSUSE-%.ogv: liveiso/openSUSE-%.iso
302         LIVEOBSWORKAROUND=1 LIVECD=1 LIVETEST=1 in=$< out=$@ L=$L testdir=${testdir} tools/isotovideo2
303
304
305         
306
307 %.ogg: %.mp3
308         ffmpeg -ab 192k -i $< -acodec vorbis $@
309 %-music.ogv: %.ogv
310         ffmpeg -t 100 -i $< -i /home/bernhard/public_html/mirror/opensuse/music/www.musopen.com/161.ogg -vcodec copy -acodec copy $@
311         #ffmpeg -t 100 -i $< -i /home/bernhard/public_html/mirror/opensuse/music/www.musopen.com/161.ogg -vcodec copy -acodec copy -f ogg - | ffmpeg2theora -o $@ -
312         #segfaults: ffmpeg -t 100 -b 20000k -i $< -i /home/bernhard/public_html/mirror/opensuse/music/www.musopen.com/161.mp3 -f ogg - | ffmpeg2theora -o $@ -
313         #ffmpeg -t 100 -i $< -i /home/bernhard/public_html/mirror/opensuse/music/www.musopen.com/161.mp3 -vcodec copy $@
314
315 gitcollect:
316         #rsync -a /srv/www/ www/
317         rsync -a /usr/local/bin/umlffmpeg ./tools/
318         rsync -a /etc/apparmor.d/{srv.www,usr.sbin.{httpd,rsyncd}}* etc/apparmor.d
319         cp -a --parent /etc/apparmor.d/{tunables,abstractions}/openqa* /etc/apparmor.d/abstractions/imagemagick .
320         rsync -a /etc/apache2/conf.d/openqa.conf etc/apache2/conf.d/
321
322 janitor:
323         git update-server-info
324         cd qatests/xfstests ; git pull ; git update-server-info #from git clone git://oss.sgi.com/xfs/cmds/xfstests
325         cd qatests/xfsprogs ; git pull ; git update-server-info
326
327 clean:
328         rm -f factory/iso/*-current-Media.iso.zsync
329         rm -rf pool/*/{testresults,video,raid,qemuscreenshot}/*
330         rm -f pool/*/qemu.pid
331         find video -size 0 | xargs --no-run-if-empty rm -f
332