VERSION=6.1.20
BUG=1951631
REL=1
RAWHIDE=35
BRANCHES="f34 f33 f32"
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
fedpkg new-sources ./VirtualBox-${VERSION}.tar.bz2
fedpkg srpm && copr-cli build sergiomb/vboxfor23 virtualbox-guest-additions-$VERSION-$REL.fc$RAWHIDE.src.rpm
# to test i686 builds
fedpkg scratch-build --srpm
fi
if test $stage -le 1
then
echo STAGE 1
echo Press enter to upload sources; read dummy;
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