~jcsackett/charmworld/bac-tag-constraints

« back to all changes in this revision

Viewing changes to scripts/queue

  • Committer: j.c.sackett
  • Date: 2013-02-19 19:20:49 UTC
  • mto: This revision was merged to the branch mainline in revision 153.
  • Revision ID: jcsackett@canonical.com-20130219192049-a20bb7hqtbn9prla
Broke up ingest script in usable separate pieces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
# Copyright 2012, 2013 Marco Ceppi, Canonical Ltd.  This software is
 
4
# licensed under the GNU Affero General Public License version 3 (see
 
5
# the file LICENSE).
 
6
 
 
7
set -e
 
8
 
 
9
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
 
10
PROJECT_DIR="$( dirname $SCRIPT_DIR )"
 
11
PYTHON_BIN=$PROJECT_DIR/bin/python
 
12
: ${LOGDIR:="$( dirname $PROJECT_DIR )/var"}
 
13
JOBDIR=$PROJECT_DIR/charmworld/jobs
 
14
 
 
15
echo "Queueing charms from launchpad..."
 
16
$PYTHON_BIN $JOBDIR/lp.py &>> $LOGDIR/ingest-lp.log