Blame update_vbox.sh

976b98
VERSION=6.1.32
976b98
BUG=2042010
ded9f4
REL=1
151508
RAWHIDE=36
0913f9
BRANCHES="f35 f34"
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
0913f9
echo Press enter scratch-build or n to skip ; read dummy;
0913f9
    if [[ "$dummy" != "n" ]]; then
0913f9
        # to test i686 builds
976b98
        fedpkg scratch-build --srpm --nowait
0913f9
    fi
0913f9
echo Press enter to build on corp -build or n to skip ; read dummy;
0913f9
    if [[ "$dummy" != "n" ]]; then
0913f9
        fedpkg srpm && copr-cli build sergiomb/vboxfor23 virtualbox-guest-additions-$VERSION-$REL.fc$RAWHIDE.src.rpm
0913f9
    fi
5c7cc3
fi
0913f9
5c7cc3
if test $stage -le 1
5c7cc3
then
5c7cc3
echo STAGE 1
5c7cc3
echo Press enter to upload sources; read dummy;
0913f9
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
0913f9
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