aboutsummaryrefslogtreecommitdiff
blob: 1c343e098f5a3bb801e2d06d19bb8df1d4726acc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

BASE="/var/tmp/gmirror-rsync"
[[ $HOSTNAME == kookaburra ]] && BASE="/var/tmp/gmirror"
EXPORTS="${BASE}/exports"
STAGEDIR="${BASE}/gentoo-x86-stage"
CACHEDIR="${BASE}/cache"
LOGDIR="${BASE}/logs"
TIMESLOG="${LOGDIR}/$(basename $0)-times.log"
PARALLEL_PARAMS="--jobs 10 --load-average 6"
PARALLEL_PARAMS_noloadavg="--jobs 8"
# Use Python3.3 for all portage processing
export EPYTHON=python3.3

# XXX: If these change, then you MUST change the rsyncd modules
FINALDIR="${BASE}/gentoo-x86-final"
# snapshots-create.sh
UPLOAD="${BASE}/snapshots-final/"

# common function
write_time_log() {
	echo "$1" >> ${TIMESLOG}
}