~jcsackett/charmworld/bac-tag-constraints

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

# Copyright 2012, 2013 Marco Ceppi, Canonical Ltd.  This software is
# licensed under the GNU Affero General Public License version 3 (see
# the file LICENSE).

set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
PROJECT_DIR="$( dirname $SCRIPT_DIR )"
PYTHON_BIN=$PROJECT_DIR/bin/python
: ${LOGDIR:="$( dirname $PROJECT_DIR )/var"}
JOBDIR=$PROJECT_DIR/charmworld/jobs

echo "Queueing charms from launchpad..."
$PYTHON_BIN $JOBDIR/lp.py &>> $LOGDIR/ingest-lp.log