aboutsummaryrefslogtreecommitdiff
blob: f2a3276aadae6d2d049495bb1c8ec00af58b8c1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh
#CODEDIR=/var/www/packages.gentoo.org
CODEDIR=$(dirname $0)
cd ${CODEDIR}
source ${CODEDIR}/etc/make.conf
if test -z "${SYNC}" || test -z "${PORTDIR}"; then
        echo "Cannot find SYNC or PORTDIR!" 1>&2
        exit 1
fi
rsync ${RSYNC_OPTS} ${SYNC} ${PORTDIR}
rc=$?
if [ $rc -ne 0 ]; then
	echo "Failed to rsync!" 1>&2
	exit 1
fi
CONFIG_ROOT=. PYTHONPATH=. python dbgenerator/core.py
pkill -HUP -u gpackages -f 'web/controller.py'