gentoo-tools

Some Gentoo helper tools
git clone git://r-36.net/gentoo-tools
Log | Files | Refs | LICENSE

eupgradeqt (710B)


      1 #!/bin/sh
      2 
      3 printf "Gathering all installed dev-qt/* packages ... "
      4 export INSTALLED_QT_PACKAGES=$(qlist -IC "dev-qt/*") 
      5 printf "done.\n"
      6 
      7 printf "Making binary packages of old dev-qt/* packages ... \n"
      8 quickpkg ${INSTALLED_QT_PACKAGES}
      9 printf "done\n"
     10 
     11 printf "NOTICE:\n"
     12 printf "\n"
     13 printf "In case anything fails, you can revert to old packages using:\n"
     14 printf "export INSTALLED_QT_PACKAGES=\"%s\"\n" "${INSTALLED_QT_PACKAGES}"
     15 printf "emerge -av1 --usepkgonly \${INSTALLED_QT_PACKAGES}\n"
     16 printf "\n"
     17 
     18 printf "Removing all old dev-qt/* packages ... \n"
     19 emerge -Ca ${INSTALLED_QT_PACKAGES}
     20 printf "done"
     21 
     22 printf "Emerging new dev-qt/* packages ... \n"
     23 emerge -av1 ${INSTALLED_QT_PACKAGES}
     24 printf "done\n"
     25