2011-07-14 22:05:05 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-10-25 15:32:44 +02:00
|
|
|
. /sabayon/bin/kernels.inc
|
|
|
|
|
2011-07-26 18:04:00 +02:00
|
|
|
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"
|
2011-07-14 22:05:05 +02:00
|
|
|
ETP_REPO="${ETP_REPO:-sabayon-limbo}"
|
|
|
|
|
|
|
|
rm -rf /usr/portage/packages/x11-drivers/*
|
|
|
|
emerge -B ${non_injected_packages} || exit 1
|
2011-10-20 17:06:17 +02:00
|
|
|
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
|
2011-10-20 17:06:17 +02:00
|
|
|
eit inject --to ${ETP_REPO} /usr/portage/packages/x11-drivers/*
|
2011-07-14 22:05:05 +02:00
|
|
|
echo
|
|
|
|
done
|