Rewrite smock in Perl, can work with multiple SRPMs and auto-analyze
[fedora-mingw.git] / build-everything-in-mock.sh
1 #!/bin/bash -
2
3 # These are the packages we don't want to build yet:
4 nobuild="example
5 cyrus-sasl
6 gdb
7 pidgin
8 python
9 nspr
10 nss
11 ocaml-lablgl
12 wix"
13
14 rm -f */*.src.rpm
15
16 for dir in *; do
17     if ! echo "$nobuild" | grep -sq "^$dir\$"; then
18         if [ -d $dir -a -f $dir/*.spec ]; then
19             (
20                 cd $dir
21                 rpmbuild -bs --define "_sourcedir $(pwd)" --define "_srcrpmdir $(pwd)" *.spec
22             )
23         fi
24     fi
25 done
26
27 smock/smock.pl --arch=i386 --arch=x86_64 --distro=fedora-10 */*.src.rpm