VERSION=6.1.26
BUG=1984089
REL=1
RAWHIDE=36
BRANCHES="f35 f34 f33"
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
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