Blame update_vbox.sh

736099
VERSION=6.1.12
ded9f4
REL=1
f95310
RAWHIDE=33
335da1
BRANCHES="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
386c9c
rpmdev-bumpspec -n $VERSION -c "Update Virtualbox Guest Additions to $VERSION" virtualbox-guest-additions.spec
ded9f4
spectool -g virtualbox-guest-additions.spec
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;
5c7cc3
fedpkg new-sources ./VirtualBox-$VERSION.tar.bz2
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