~z-man/armagetronad/multifetch

« back to all changes in this revision

Viewing changes to fetch.sh

  • Committer: Manuel Moos
  • Date: 2010-06-25 12:55:03 UTC
  • Revision ID: z-man@users.sf.net-20100625125503-s0nwqws9k566h1ft
Got rid of need for configuration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
scriptdir=$(pwd)
9
9
popd > /dev/null
10
10
 
11
 
. ${scriptdir}/config.sh || { echo "Open the file config.sh and enter lp_username=<your launchpad username> there."; exit 1 ; }
12
 
 
13
11
function checkout()
14
12
{
15
13
   branchroot=$1
16
14
   target=$3
17
15
   test -z "$target" && target=$2
18
 
   bzr branch http://bazaar.launchpad.net/~armagetronad-dev/armagetronad/${branchroot}-$2-work $target || exit 1
 
16
   full=bzr+ssh://bazaar.launchpad.net/~armagetronad-dev/armagetronad/${branchroot}-$2-work
 
17
   bzr branch $full $target || exit 1
19
18
   pushd $target
20
 
   bzr push bzr+ssh://${lp_username}@bazaar.launchpad.net/~armagetronad-dev/armagetronad/${branchroot}-$2-work
 
19
   bzr push $full
21
20
   popd
22
21
}
23
22