commit c74c2436da2bb3c8c8e2641652c421376eba612e
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Tue Jan 16 23:59:18 2018 +0000
Update updates_fixes.sh with more ideas :)
and also some fixes, "git pull" is needed
update_fixes.sh | 22 ++++++++++++++++++++--
1 file changed, 20 insertions(+), 2 deletions(-)
---
diff --git a/update_fixes.sh b/update_fixes.sh
index 730b8e6..586a8c1 100755
--- a/update_fixes.sh
+++ b/update_fixes.sh
@@ -1,13 +1,31 @@
git clone
git://github.com/MythTV/mythtv.git
+version=29.0
branch=fixes/29
pushd mythtv
git checkout $branch
-git diff -p --stat v29.0 > ../mythtv-fixes.patch
-git log v29.0..HEAD > ../ChangeLog
+git pull
+git log v$version..HEAD > ../ChangeLog
newdescrib=$(git describe)
date=$(git log -1 --format=%cd --date=short | tr -d \-)
relversion=$(echo $newdescrib | sed "s/^[^-]*//; s/-/./g; s/^/.$date/")
+githash=$(git rev-parse HEAD)
+shorthash=$(echo $githash | cut -b -10)
popd
sed -i "s|^%define vers_string .*|%define vers_string $newdescrib|"
mythtv.spec
sed -i "s|^%define rel_string .*|%define rel_string $relversion|" mythtv.spec
+sed -i "s|^%define githash .*|%define githash $githash|" mythtv.spec
+git checkout mythtv.spec
rpmdev-bumpspec -c "Update to $newdescrib from branch $branch" mythtv.spec
+spectool -g mythtv.spec
+echo Press enter to run: rfpkg new-sources mythtv-${version}-${shorthash}.tar.gz; read
dummy;
+rfpkg new-sources mythtv-${version}-${shorthash}.tar.gz
+echo Press enter to continue; read dummy;
+rfpkg clog && rfpkg commit -F clog && /bin/rm clog && git show
+echo Press enter to continue; read dummy;
+rfpkg push && rfpkg build --nowait
+echo Press enter to continue; read dummy;
+git checkout f27 && git merge master && git push && rfpkg build
--nowait; git checkout master
+echo Press enter to continue; read dummy;
+git checkout f26 && git merge master && git push && rfpkg build
--nowait; git checkout master
+echo Press enter to continue; read dummy;
+git checkout el7 && git merge master && git push && rfpkg build
--nowait; git checkout master