VERSION=6.1.8
REL=1
RAWHIDE=33
BRANCHES="f32 f31 f30"
if [ -z "$1" ]
then
stage=0
else
stage=$1
fi
git checkout master
git pull
if test $stage -le 0
then
echo STAGE 0
rpmdev-bumpspec -n $VERSION -c "Update Virtualbox Guest Additions to $VERSION" virtualbox-guest-additions.spec
spectool -g virtualbox-guest-additions.spec
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 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
for BRANCH in $BRANCHES ; do
echo Press enter to build $BRANCH to continue; read dummy;
git checkout $BRANCH && git merge master && git push && fedpkg build --nowait; git checkout master
done
fi