Blame update_vbox.sh

927ccd
VERSION=6.1.28
927ccd
BUG=2015655
ded9f4
REL=1
151508
RAWHIDE=36
151508
BRANCHES="f35 f34 f33"
5c7cc3
if [ -z "$1" ]
5c7cc3
then
5c7cc3
      stage=0
5c7cc3
else
5c7cc3
      stage=$1
5c7cc3
fi
ded9f4
d008aa
git checkout rawhide
ded9f4
git pull
5c7cc3
if test $stage -le 0
5c7cc3
then
5c7cc3
echo STAGE 0
d008aa
rpmdev-bumpspec -n $VERSION -c "Update Virtualbox Guest Additions to ${VERSION} (#${BUG})" virtualbox-guest-additions.spec
ded9f4
spectool -g virtualbox-guest-additions.spec
d55630
# to not download sources again we do new-sources right now
ffb16f
fedpkg new-sources ./VirtualBox-${VERSION}.tar.bz2
d55630
# fedpkg srpm && copr-cli build sergiomb/vboxfor23 virtualbox-guest-additions-$VERSION-$REL.fc$RAWHIDE.src.rpm
5c7cc3
# to test i686 builds
5c7cc3
fedpkg scratch-build --srpm
5c7cc3
fi
5c7cc3
if test $stage -le 1
5c7cc3
then
5c7cc3
echo STAGE 1
5c7cc3
echo Press enter to upload sources; read dummy;
abda82
fedpkg ci -c && git show
5c7cc3
echo Press enter to push and build on rawhide; read dummy;
ded9f4
fedpkg push && fedpkg build --nowait
335da1
fi
335da1
if test $stage -le 2
335da1
then
335da1
echo STAGE 2
def0a7
for BRANCH in $BRANCHES ; do
def0a7
echo Press enter to build $BRANCH to continue; read dummy;
d008aa
git checkout $BRANCH && git merge rawhide && git push && fedpkg build --nowait; git checkout rawhide
def0a7
done
5c7cc3
fi