~launchpad-pqm/launchpad/devel

4920.2.13 by Mark Shuttleworth
Add rocketfuel-push script and make rocketfuel-setup aware of it
1
#! /bin/bash
2
8687.15.2 by Karl Fogel
In files modified by r8688, change "<YEARS>" to "2009", as per
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
8687.15.3 by Karl Fogel
Shorten the copyright header block to two lines.
4
# GNU Affero General Public License version 3 (see the file LICENSE).
8452.3.3 by Karl Fogel
* utilities/: Add copyright header block to source files that were
5
#
8486.13.2 by Curtis Hovey
Merge from launchpad devel. Reconciled devpad removals.
6
# Push all of your branches to launchpad, so that you have a server-side
7
# backup of everything, assuming your ~/.bazaar/locations.conf has been setup
6567.2.2 by Barry Warsaw
Respond to review comments.
8
# correctly by rocketfuel-setup.
6567.1.3 by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere.
9
6673.1.3 by Barry Warsaw
Use $HOME instead of ~
10
source "$HOME/.rocketfuel-env.sh"
6673.1.5 by Barry Warsaw
Respond to Edwin's review.
11
if [ "$?" != 0 ]; then
12
    echo "Please run rocketfuel-setup first."
13
    exit 1
14
fi
6567.1.3 by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere.
15
16
cd $LP_PROJECT_PATH
4920.2.13 by Mark Shuttleworth
Add rocketfuel-push script and make rocketfuel-setup aware of it
17
for branch in *; do
6567.1.3 by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere.
18
  if [ ${branch} != "$LP_TRUNK_NAME" ] && test -d ${branch} ; then
4920.2.13 by Mark Shuttleworth
Add rocketfuel-push script and make rocketfuel-setup aware of it
19
    echo "Pushing ${branch}"
20
    cd ${branch}
21
    bzr push
22
    cd ..
23
  fi;
24
done;