X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=build-everything-in-mock.sh;h=bdc81e32d4c8cf3f495d5745afd223643521e547;hb=712f23e3535d56cf7ff9aadfabd08e5c230634ba;hp=cd3ec5a16ee3ff64b7a167a53727b77b94057a9c;hpb=479cf12f9186d81f047047f9b62f2d9a36121ccc;p=fedora-mingw.git diff --git a/build-everything-in-mock.sh b/build-everything-in-mock.sh index cd3ec5a..bdc81e3 100755 --- a/build-everything-in-mock.sh +++ b/build-everything-in-mock.sh @@ -1,27 +1,35 @@ #!/bin/bash - # These are the packages we don't want to build yet: -nobuild="example -cyrus-sasl -gdb -pidgin -python -nspr -nss -virt-ctrl -wix" +nobuild=$(grep -v '^#' IGNORE) + +# Keep going (not safe). Comment out for a safe build. +keepgoing=--keepgoing 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 IGNORE file in the top level directory." + 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-rawhide \ + --distro=fedora-10 \ + $keepgoing \ + $srpms