Blob Blame History Raw
VERSION=6.1.16
REL=1
RAWHIDE=34
BRANCHES="f33 f32 f31"
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}a" 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 master && git push && fedpkg build --nowait; git checkout master
done
fi