commit e5d2d5e61ffee28591ff28a60f98b7a7f607fdb9
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Tue Apr 30 00:32:45 2019 +0100
Add update script herlper
update_vbox.sh | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 62 insertions(+)
---
diff --git a/update_vbox.sh b/update_vbox.sh
new file mode 100755
index 0000000..d16d1bc
--- /dev/null
+++ b/update_vbox.sh
@@ -0,0 +1,62 @@
+VERSION=6.0.6
+REL=3
+
+if [ -z "$1" ]
+then
+ stage=0
+else
+ stage=$1
+fi
+
+git checkout master
+git pull
+if test $stage -le 0
+then
+echo STAGE 0
+rpmdev-bumpspec -n $VERSION -c "Update to $VERSION" VirtualBox-kmod.spec
+rfpkg ci -c && git show
+#rfpkg srpm && mock -r fedora-27-x86_64-rpmfusion_free --no-clean --rebuild
smplayer-17.5.0-1.fc27.src.rpm
+#cp VirtualBox-kmod.spec VirtualBox-kmod.spec.new
+#git reset HEAD~1
+#git rm kernel-4.10.0-0.rc5.lnkops.v2.patch
+echo Press enter to continue; read dummy;
+rfpkg push && rfpkg build --nowait
+#koji-rpmfusion watch-task
+fi
+
+if test $stage -le 1
+then
+echo STAGE 1
+BRANCH1=f30
+BRANCH2=fc30
+echo Press enter tag-build $BRANCH1 to continue; read dummy;
+koji-rpmfusion tag-build $BRANCH1-free-override VirtualBox-$VERSION-$REL.$BRANCH2
+koji-rpmfusion wait-repo $BRANCH1-free-build --build=VirtualBox-$VERSION-$REL.$BRANCH2
+git checkout $BRANCH1 && git merge master && git push && rfpkg
build --nowait; git checkout master
+BRANCH1=f29
+BRANCH2=fc29
+echo Press enter tag-build $BRANCH1 to continue; read dummy;
+koji-rpmfusion tag-build $BRANCH1-free-override VirtualBox-$VERSION-$REL.$BRANCH2
+(koji-rpmfusion wait-repo $BRANCH1-free-build --build=VirtualBox-$VERSION-$REL.$BRANCH2
&& \
+git checkout $BRANCH1 && git merge master && git push && rfpkg
build --nowait) &
+#koji-rpmfusion watch-task
+BRANCH1=f28
+BRANCH2=fc28
+echo Press enter to continue; read dummy;
+koji-rpmfusion tag-build $BRANCH1-free-override VirtualBox-$VERSION-$REL.$BRANCH2
+koji-rpmfusion wait-repo $BRANCH1-free-build --build=VirtualBox-$VERSION-$REL.$BRANCH2
+git checkout $BRANCH1 && git merge master && git push && rfpkg
build --nowait; git checkout master
+echo Press enter to continue; read dummy;
+fi
+
+if test $stage -le 2
+then
+echo STAGE 2
+echo Press enter to continue; read dummy;
+BRANCH1=el7
+BRANCH2=el7
+koji-rpmfusion tag-build el7-free-override VirtualBox-$VERSION-$REL.el7
+koji-rpmfusion wait-repo $BRANCH1-free-build --build=VirtualBox-$VERSION-$REL.$BRANCH2
+git checkout $BRANCH1 && git merge master && git push && rfpkg
build --nowait; git checkout master
+fi
+echo Finish