~cjwatson/launchpad-buildd/snap-default-branch

« back to all changes in this revision

Viewing changes to generate-translation-templates

  • Committer: Martin Pool
  • Date: 2011-11-09 08:50:17 UTC
  • Revision ID: mbp@canonical.com-20111109085017-a2oejlb3zuol6a2e
Move buildd code from canonical.buildd to lpbuildd python package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
2
#
3
 
# Copyright 2010 Canonical Ltd.  This software is licensed under the
 
3
# Copyright 2010,2011 Canonical Ltd.  This software is licensed under the
4
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
5
 
6
6
# Buildd Slave tool to generate translation templates. Boiler plate code
38
38
echo "Running as $USER for build $BUILDID on $BRANCH_URL."
39
39
echo "Results expected in $RESULT_NAME."
40
40
 
41
 
BUILDD_PACKAGE=canonical/buildd
 
41
BUILDD_PACKAGE=lpbuildd
42
42
POTTERY=$BUILDD_PACKAGE/pottery
43
43
# The script should be smarter about detecting the python version.
44
44
PYMODULES=/usr/lib/pymodules/python2.7
54
54
 
55
55
# Copy pottery files to chroot.
56
56
debug_exec "$SUDO $MKDIR -vp $BUILD_CHROOT$PYMODULES/$BUILDD_PACKAGE"
57
 
debug_exec "$SUDO $TOUCH $BUILD_CHROOT$PYMODULES/canonical/__init__.py"
58
 
debug_exec "$SUDO $TOUCH $BUILD_CHROOT$PYMODULES/canonical/buildd/__init__.py"
 
57
debug_exec "$SUDO $TOUCH $BUILD_CHROOT$PYMODULES/$BUILDD_PACKAGE/__init__.py"
59
58
debug_exec "$SUDO $CP -vr $BUILDD_HOME/$POTTERY $BUILD_CHROOT$PYMODULES/$BUILDD_PACKAGE"
60
 
debug_exec "$SUDO $CHMOD -v -R go+rX $BUILD_CHROOT$PYMODULES/canonical"
 
59
debug_exec "$SUDO $CHMOD -v -R go+rX $BUILD_CHROOT$PYMODULES/$BUILDD_PACKAGE"
61
60
debug_exec "$SUDO $CHMOD -v 755 $BUILD_CHROOT$GENERATE_SCRIPT"
62
61
 
63
62
# Enter chroot, switch back to unprivileged user, execute the generate script.