]>
git.wh0rd.org - home.git/blob - .bin/gentoo-sync
5e8458479bb827de6b714c8d214d0f81e1ee3618
3 [[ ${FLOCKER} != $0 ]] && exec env FLOCKER
=$0 flock
-en $0 -c "$0 $*" ||
:
6 sync_log
="${logdir}/rsync.log"
7 up_log
="${logdir}/emerge-updates.log"
13 conf
="/etc/gentoo-sync.conf"
14 [[ -e ${conf} ]] && .
"${conf}"
22 # For slow systems, run rsync directly.
23 for f
in make.globals
make.conf
; do
24 for d
in /etc
/etc
/portage
/usr
/share
/portage
/config
; do
26 [[ -e ${f} ]] && .
${f} && break
29 : ${PORTAGE_RSYNC_OPTS:=-azO --delete --exclude=/distfiles --exclude=/local --exclude=/packages}
30 : ${SYNC:=rsync://rsync.gentoo.org/gentoo-portage}
31 : ${PORTDIR:=/usr/portage}
32 exec rsync
${PORTAGE_RSYNC_OPTS} ${PORTAGE_RSYNC_EXTRA_OPTS} ${SYNC}/ ${PORTDIR}/
37 ${GS_EUPDATEDB} && $
(type -P eupdatedb
)
39 ${GS_FETCH} && emerge world
-Duf
44 if ${GS_UPWORLD} ; then
46 eval $
(portageq envvar
-v PORTDIR
)
48 good_pkgs
=$
(ls -d `qlist -IC`)
49 echo 'emerge -u1 --keep-going $(awk '\''$2 ~ /\// {print $2}'\'' '${up_log}')'
50 emerge
${good_pkgs} -upq --cols