2012-08-12 04:19:25 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# set -x
|
2013-08-29 16:09:53 +00:00
|
|
|
CPUS=$(nproc)
|
2012-08-12 04:19:25 +00:00
|
|
|
|
2013-09-03 00:54:59 +00:00
|
|
|
# as many cc as CPUs
|
|
|
|
export MAKEOPTS="-j${CPUS}"
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
# Trigger mount
|
|
|
|
# ls /mnt/portage/distfiles /mnt/portage/portage > /dev/null
|
|
|
|
|
2013-09-03 00:54:59 +00:00
|
|
|
# Half as many emerge as CPUs, to speed up configure runs
|
|
|
|
emerge --ask --update --deep --newuse --keep-going --accept-properties=-interactive --jobs $((CPUS/2)) world
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
# echo "Fixing pax flags..."
|
|
|
|
# ${SCRIPT_DIR}/fix_grsec.sh
|
|
|
|
|
|
|
|
echo "Going to remove unneeded packages ..."
|
2013-09-03 00:54:59 +00:00
|
|
|
emerge --depclean
|
2012-08-12 04:19:25 +00:00
|
|
|
|
|
|
|
echo "Fixing dependencies..."
|
|
|
|
revdep-rebuild -i
|
2013-09-03 00:54:59 +00:00
|
|
|
|
|
|
|
echo "Updating eix cache..."
|
|
|
|
eix-update -q
|