Blob Blame History Raw
VERSION=6.1.32
BUG=2042010
REL=1
RAWHIDE=36
BRANCHES="f35 f34"
if [ -z "$1" ]
then
      stage=0
else
      stage=$1
fi

git checkout rawhide
git pull
if test $stage -le 0
then
echo STAGE 0
rpmdev-bumpspec -n $VERSION -c "Update Virtualbox Guest Additions to ${VERSION} (#${BUG})" virtualbox-guest-additions.spec
spectool -g virtualbox-guest-additions.spec
# to not download sources again we do new-sources right now
echo Press enter scratch-build or n to skip ; read dummy;
    if [[ "$dummy" != "n" ]]; then
        # to test i686 builds
        fedpkg scratch-build --srpm --nowait
    fi
echo Press enter to build on corp -build or n to skip ; read dummy;
    if [[ "$dummy" != "n" ]]; then
        fedpkg srpm && copr-cli build sergiomb/vboxfor23 virtualbox-guest-additions-$VERSION-$REL.fc$RAWHIDE.src.rpm
    fi
fi

if test $stage -le 1
then
echo STAGE 1
echo Press enter to upload sources; read dummy;
fedpkg new-sources ./VirtualBox-${VERSION}.tar.bz2
fedpkg ci -c && git show
echo Press enter to push and build on rawhide; read dummy;
fedpkg push && fedpkg build --nowait
fi

if test $stage -le 2
then
echo STAGE 2
for BRANCH in $BRANCHES ; do
echo Press enter to build $BRANCH to continue; read dummy;
git checkout $BRANCH && git merge rawhide && git push && fedpkg build --nowait; git checkout rawhide
done
fi