[bin] update bump scripts to handle 3.0.0-fusion

This commit is contained in:
Fabio Erculiani 2011-08-25 12:35:27 +02:00
parent 3819939910
commit 529da5038c
5 changed files with 15 additions and 24 deletions

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon" kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon 3.0.0-fusion"
running_kernel="3.0.0-sabayon" running_kernel="3.0.0-sabayon"
packages="x11-drivers/ati-drivers::sabayon" packages="x11-drivers/ati-drivers::sabayon"
# build for latest kernel # build for latest kernel
KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge $packages media-video/amdcccle::sabayon KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge $packages media-video/amdcccle::sabayon
echo -5 | etc-update echo -5 | etc-update
reagent update eit commit
for kernel in $kernels; do for kernel in $kernels; do
if [ "${kernel}" = "${running_kernel}" ]; then if [ "${kernel}" = "${running_kernel}" ]; then
@ -17,12 +17,7 @@ for kernel in $kernels; do
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 ) KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 )
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo) built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2 [[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
reagent inject ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 ) eit fit ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 )
echo
reagent query tags ${kernel} -qv | sort
echo
done done
echo "Now you should remove old packages:" echo "Now you should remove old packages..."
echo reagent repo remove `reagent query search ${packages} -qv | grep MY_OLD_VER | xargs echo`
echo

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon" kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon 3.0.0-fusion"
packages="~x11-drivers/nvidia-drivers-173.14.31 ~x11-drivers/nvidia-drivers-96.43.20" packages="~x11-drivers/nvidia-drivers-173.14.31 ~x11-drivers/nvidia-drivers-96.43.20"
non_injected_packages="~x11-drivers/nvidia-userspace-173.14.31 ~x11-drivers/nvidia-userspace-96.43.20" non_injected_packages="~x11-drivers/nvidia-userspace-173.14.31 ~x11-drivers/nvidia-userspace-96.43.20"
ETP_REPO="${ETP_REPO:-sabayon-limbo}" ETP_REPO="${ETP_REPO:-sabayon-limbo}"

View File

@ -5,10 +5,10 @@
# every currently supported kernel. You can use this script when # every currently supported kernel. You can use this script when
# you bump kernels or xorg-server. # you bump kernels or xorg-server.
kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon" kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon 3.0.0-fusion"
running_kernel="3.0.0-sabayon" running_kernel="3.0.0-sabayon"
packages="~x11-drivers/nvidia-drivers-173.14.28 ~x11-drivers/nvidia-drivers-96.43.19" packages="~x11-drivers/nvidia-drivers-173.14.31 ~x11-drivers/nvidia-drivers-96.43.20"
non_injected_packages="~x11-drivers/nvidia-drivers-260.19.29 x11-drivers/ati-drivers x11-drivers/xf86-video-virtualbox" non_injected_packages="x11-drivers/nvidia-drivers x11-drivers/ati-drivers x11-drivers/xf86-video-virtualbox"
general_purpose_packages="media-video/amdcccle" general_purpose_packages="media-video/amdcccle"
ETP_REPO="${ETP_REPO:-sabayon-limbo}" ETP_REPO="${ETP_REPO:-sabayon-limbo}"
@ -20,7 +20,7 @@ for kernel in $kernels; do
# build for latest kernel # build for latest kernel
rm -rf /usr/portage/packages/x11-drivers/* rm -rf /usr/portage/packages/x11-drivers/*
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${mypackages} || exit 1 KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${mypackages} || exit 1
reagent inject /usr/portage/packages/x11-drivers/* eit fit /usr/portage/packages/x11-drivers/*
echo echo
done done
@ -28,6 +28,6 @@ done
eselect kernel set "linux-${running_kernel}" || exit 1 eselect kernel set "linux-${running_kernel}" || exit 1
emerge ${non_injected_packages} ${general_purpose_packages} || exit 1 emerge ${non_injected_packages} ${general_purpose_packages} || exit 1
echo -5 | etc-update echo -5 | etc-update
reagent update --atoms ${non_injected_packages} ${general_purpose_packages} || exit 1 eit add ${non_injected_packages} ${general_purpose_packages} || exit 1
echo "Now you should remove old packages, if you want of course" echo "Now you should remove old packages, if you want of course"

View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon" kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-sabayon 3.0.0-fusion"
running_kernel="3.0.0-sabayon" running_kernel="3.0.0-sabayon"
packages="x11-drivers/nvidia-drivers::sabayon" packages="x11-drivers/nvidia-drivers::sabayon"
# build for latest kernel # build for latest kernel
KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge $packages media-video/nvidia-settings::sabayon KERNEL_DIR="/usr/src/linux-${running_kernel}" emerge $packages media-video/nvidia-settings::sabayon
echo -5 | etc-update echo -5 | etc-update
reagent update eit commit
for kernel in $kernels; do for kernel in $kernels; do
if [ "${kernel}" = "${running_kernel}" ]; then if [ "${kernel}" = "${running_kernel}" ]; then
@ -17,12 +17,8 @@ for kernel in $kernels; do
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 ) KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${packages} || ( echo "ouch unable to build" && exit 1 )
built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo) built_pkgs=$(find /usr/portage/packages -name "*.tbz2" | xargs echo)
[[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2 [[ -z "${built_pkgs}" ]] && echo "ouch no kernel pkgs" && exit 2
reagent inject ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 ) eit fit ${built_pkgs} || ( echo "ouch unable to inject" && exit 3 )
echo
reagent query tags ${kernel} -qv | sort
echo echo
done done
echo "Now you should remove old packages:" echo "Now you should remove old packages..."
echo reagent repo remove `reagent query search ${packages} -qv | grep MY_OLD_VER | xargs echo`
echo

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon" kernels="2.6.36-sabayon 2.6.37-sabayon 2.6.38-sabayon 2.6.39-sabayon 3.0.0-fusion"
running_kernel="3.0.0-sabayon" running_kernel="3.0.0-sabayon"
packages="app-emulation/virtualbox-guest-additions app-emulation/virtualbox-modules x11-drivers/xf86-video-virtualbox" packages="app-emulation/virtualbox-guest-additions app-emulation/virtualbox-modules x11-drivers/xf86-video-virtualbox"
non_tagged_packages="xf86-input-virtualbox virtualbox-bin" non_tagged_packages="xf86-input-virtualbox virtualbox-bin"