tAdd eupgradeqt - gentoo-tools - Some Gentoo helper tools
(HTM) git clone git://r-36.net/gentoo-tools
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 61b588038599a3d91f8e632938d53279569b4fc4
(DIR) parent 07a646746ddbf7bc4eb5f688d0cac7d63584e3db
(HTM) Author: Christoph Lohmann <20h@r-36.net>
Date: Sun, 14 Mar 2021 16:36:40 +0100
Add eupgradeqt
Diffstat:
bin/eupgradeqt | 25 +++++++++++++++++++++++++
gt.1 | 3 +++
2 files changed, 28 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/bin/eupgradeqt b/bin/eupgradeqt
t@@ -0,0 +1,25 @@
+#!/bin/sh
+
+printf "Gathering all installed dev-qt/* packages ... "
+export INSTALLED_QT_PACKAGES=$(qlist -IC "dev-qt/*")
+printf "done.\n"
+
+printf "Making binary packages of old dev-qt/* packages ... \n"
+quickpkg ${INSTALLED_QT_PACKAGES}
+printf "done\n"
+
+printf "NOTICE:\n"
+printf "\n"
+printf "In case anything fails, you can revert to old packages using:\n"
+printf "export INSTALLED_QT_PACKAGES=\"%s\"\n" "${INSTALLED_QT_PACKAGES}"
+printf "emerge -av1 --usepkgonly \${INSTALLED_QT_PACKAGES}\n"
+printf "\n"
+
+printf "Removing all old dev-qt/* packages ... \n"
+emerge -Ca ${INSTALLED_QT_PACKAGES}
+printf "done"
+
+printf "Emerging new dev-qt/* packages ... \n"
+emerge -av1 ${INSTALLED_QT_PACKAGES}
+printf "done\n"
+
(DIR) diff --git a/gt.1 b/gt.1
t@@ -44,6 +44,9 @@
.Op emerge-options
.Nd Do things to the @world set.
+.Nm eupgradeqt
+.Nd Upgrade all dev-qt packages by removing and reinstalling them.
+
.Sh DESCRIPTION
.Nm gentoo-tools
A set of wrappers for gentoo's verbose programs, especially portage.