Blame update_vbox.sh

ffb16f
VERSION=6.1.16
ded9f4
REL=1
6f1a40
RAWHIDE=34
6f1a40
BRANCHES="f33 f32 f31"
5c7cc3
if [ -z "$1" ]
5c7cc3
then
5c7cc3
      stage=0
5c7cc3
else
5c7cc3
      stage=$1
5c7cc3
fi
ded9f4
def0a7
git checkout master
ded9f4
git pull
5c7cc3
if test $stage -le 0
5c7cc3
then
5c7cc3
echo STAGE 0
6f1a40
rpmdev-bumpspec -n $VERSION -c "Update Virtualbox Guest Additions to ${VERSION}a" 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;
def0a7
git checkout $BRANCH && git merge master && git push && fedpkg build --nowait; git checkout master
def0a7
done
5c7cc3
fi