X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=build-everything-in-mock.sh;h=716de2dfb12dbf2511cdd7016ca08d176a660a7b;hb=8856dc1c0aeaa4db7ee877af2839454e1889f0dd;hp=4f0245037c96a435af5636458336b31f09e93b71;hpb=4d853c2dd1748e9c25014db7b114e587f038704c;p=fedora-mingw.git diff --git a/build-everything-in-mock.sh b/build-everything-in-mock.sh index 4f02450..716de2d 100755 --- a/build-everything-in-mock.sh +++ b/build-everything-in-mock.sh @@ -6,21 +6,30 @@ cyrus-sasl gdb pidgin python +python3 nspr nss +virt-ctrl wix" rm -f */*.src.rpm +# If any extra SRPMS need to be considered, list them here. Otherwise +# leave this empty. +srpms="" + for dir in *; do if ! echo "$nobuild" | grep -sq "^$dir\$"; then if [ -d $dir -a -f $dir/*.spec ]; then - ( - cd $dir - rpmbuild -bs --define "_sourcedir $(pwd)" --define "_srcrpmdir $(pwd)" *.spec - ) + if ! rpmbuild -bs --define "_sourcedir $(pwd)/$dir" --define "_srcrpmdir $(pwd)/$dir" $dir/*.spec; then + echo "Failed to create a source RPM in directory $dir." + echo "If you want to ignore this directory, you should add" + echo "it to the 'nobuild' list in this script." + exit 1 + fi + srpms="$srpms $(pwd)/$dir/*.src.rpm" fi fi done -smock/smock.pl --arch=i386 --arch=x86_64 --distro=fedora-10 */*.src.rpm +smock/smock.pl --arch=i386 --arch=x86_64 --distro=fedora-10 $srpms