Blame update_vbox.sh

d008aa
VERSION=6.1.20
d008aa
BUG=1951631
ded9f4
REL=1
d008aa
RAWHIDE=35
d008aa
BRANCHES="f34 f33 f32"
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
ffb16f
fedpkg new-sources ./VirtualBox-${VERSION}.tar.bz2
abda82
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