X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=build-everything-in-mock.sh;h=782bea26f72a147074593cc16da03523cba63d6a;hb=ef1a2719353f89cd77c235888c4e882bb0b1e3b3;hp=716de2dfb12dbf2511cdd7016ca08d176a660a7b;hpb=5a01ca2bdc64416cb6bfa4090b6ab60b34c00987;p=fedora-mingw.git diff --git a/build-everything-in-mock.sh b/build-everything-in-mock.sh index 716de2d..782bea2 100755 --- a/build-everything-in-mock.sh +++ b/build-everything-in-mock.sh @@ -1,16 +1,12 @@ #!/bin/bash - +set -e + # These are the packages we don't want to build yet: -nobuild="example -cyrus-sasl -gdb -pidgin -python -python3 -nspr -nss -virt-ctrl -wix" +nobuild=$(grep -v '^#' IGNORE) + +# Keep going - don't stop when smock hits an error. +keepgoing=--keepgoing rm -f */*.src.rpm @@ -24,7 +20,7 @@ for dir in *; do 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." + echo "it to the IGNORE file in the top level directory." exit 1 fi srpms="$srpms $(pwd)/$dir/*.src.rpm" @@ -32,4 +28,29 @@ for dir in *; do fi done -smock/smock.pl --arch=i386 --arch=x86_64 --distro=fedora-10 $srpms +# Rawhide build everything: + +smock/smock.pl \ + --arch=i386 \ + --arch=x86_64 \ + --distro=fedora-rawhide \ + $keepgoing \ + $srpms + +# In Fedora 10 don't try to build the OCaml RPMs since they +# require OCaml 3.11 which was not in Fedora 10: + +srpms_no_ocaml="" +for f in $srpms; do + case $f in + *ocaml* | *virt-top*) ;; + *) srpms_no_ocaml="$srpms_no_ocaml $f" ;; + esac +done + +smock/smock.pl \ + --arch=i386 \ + --arch=x86_64 \ + --distro=fedora-10 \ + $keepgoing \ + $srpms_no_ocaml