Allows to specify which repositories should receive cache update via
repository_list( gentoo [other-repos] )
and allows to specify numbers of egencache jobs via
egencache_jobnum="<num>"
Since updating the cache the first time or after not syncing for a while
takes quite a bit of CPU, we might as well opportunistically utilize the
rsync cache by selectively rsyncing from it, and then running the local
caching operation after.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Using ebegin/eend makes things a bit cleaner and Gentoo-ish, and we can
also clean up the scripts in general by using git's -C option.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>