build/bin/bump_injected_nvidia_drivers

21 lines
723 B
Plaintext
Raw Normal View History

2011-07-14 22:05:05 +02:00
#!/bin/sh
. /sabayon/bin/kernels.inc
2014-11-02 09:42:47 +01:00
packages="=x11-drivers/nvidia-drivers-173* =x11-drivers/nvidia-drivers-304*"
non_kernel_packages="=x11-drivers/nvidia-userspace-173* =x11-drivers/nvidia-userspace-304*"
2011-07-14 22:05:05 +02:00
ETP_REPO="${ETP_REPO:-sabayon-limbo}"
rm -rf /usr/portage/packages/x11-drivers/*
2014-11-02 09:42:47 +01:00
emerge -B ${non_kernel_packages} || exit 1
eit inject --to ${ETP_REPO} /usr/portage/packages/x11-drivers/* || exit 1
2011-07-14 22:05:05 +02:00
for kernel in $kernels; do
mypackages="${packages}"
# build for latest kernel
rm -rf /usr/portage/packages/x11-drivers/*
KERNEL_DIR="/usr/src/linux-${kernel}" emerge -B ${mypackages} || exit 1
eit inject --to ${ETP_REPO} /usr/portage/packages/x11-drivers/*
2011-07-14 22:05:05 +02:00
echo
done