diff --git a/extra/buildbot.helper b/extra/buildbot.helper index d29f9e698c..5e068bb2bd 100755 --- a/extra/buildbot.helper +++ b/extra/buildbot.helper @@ -1,24 +1,29 @@ #!/bin/bash set -x self=`basename $0` if [ x$1 = xinstall ]; then mock --configdir=$PWD --root=mock --resultdir=./mock -v --install ./mock/*.rpm nano elif [ x$1 = xdownloads ]; then mock --configdir=$PWD --root=mock --resultdir=./mock -v --install ./downloads/*.rpm nano mock --configdir=$PWD --root=mock --resultdir=./mock -v --copyin $0 / mock --configdir=$PWD --root=mock --resultdir=./mock -v --shell -- bash /$self gcov elif [ x$1 = xgcov ]; then # Magic to make the source code available to gcov include=`rpm -ql pacemaker-debuginfo | grep include | head -n 1` cd $include/.. + + # Create the directory structure + find . -type d -exec mkdir /var/lib/pacemaker/gcov/\{\} \; + + # Now link the files in place find . -type f -exec ln -s $PWD/\{\} /var/lib/pacemaker/gcov/\{\} \; elif [ x$1 = xlint ]; then rpmlint -i -f rpmlintrc ./mock/*.rpm else echo "Unknown sub-command: $1" exit 1 fi