4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
1 |
#! /bin/bash
|
2 |
||
6567.2.2
by Barry Warsaw
Respond to review comments. |
3 |
# Create a new branch of LP called "foo" in $LP_PROJECT_PATH/foo, with all the
|
4 |
# source dependencies properly linked in.
|
|
5 |
||
6673.1.3
by Barry Warsaw
Use $HOME instead of ~ |
6 |
source "$HOME/.rocketfuel-env.sh" |
6673.1.5
by Barry Warsaw
Respond to Edwin's review. |
7 |
if [ "$?" != 0 ]; then |
8 |
echo "Please run rocketfuel-setup first." |
|
9 |
exit 1 |
|
10 |
fi
|
|
4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
11 |
|
8357.5.18
by Gary Poster
fix buildout issues |
12 |
LP_DOWNLOAD_CACHE_PATH=$LP_PROJECT_ROOT/$LP_SOURCEDEPS_DIR/download-cache |
13 |
LP_EGGS_PATH=$LP_PROJECT_ROOT/$LP_SOURCEDEPS_DIR/eggs |
|
8329.1.2
by Gary Poster
specify zope.interface version; make bootstrap and buildout only called when necessary from make file; make change to rocketfuel config file unnecessary, so rocketfuel-setup does not need to be called; make twistd calls include sys.path in PYTHONPATH. |
14 |
LP_DOWNLOAD_CACHE_PATH=$(eval echo ${LP_DOWNLOAD_CACHE_PATH}) |
15 |
LP_EGGS_PATH=$(eval echo ${LP_EGGS_PATH}) |
|
16 |
||
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
17 |
if [ "x$1" == "x" ]; then |
4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
18 |
echo "Usage: $0 new-branch-name" |
19 |
echo "Example: '$0 fixes-bug-54356'" |
|
20 |
exit 2 |
|
21 |
fi
|
|
22 |
||
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
23 |
if [ -e "${LP_PROJECT_PATH}/$1" ]; then |
4420.1.2
by Elliot Murphy
Fixing typo in rocketfuel-branch. |
24 |
echo "Error: '$1' already exists" |
4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
25 |
exit 1 |
26 |
fi
|
|
27 |
||
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
28 |
if [ ! -d "${LP_PROJECT_PATH}" ]; then |
5534.2.4
by Mark Shuttleworth
Ensure date ranges are enforced by the DateWidget and use that for membership |
29 |
echo "Error: no rocketfuel found, please run rocketfuel-setup" |
30 |
exit 1 |
|
31 |
fi
|
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
32 |
cd ${LP_PROJECT_PATH} |
6567.1.4
by Barry Warsaw
Last minute patch and whitespace normalization. |
33 |
if [ ! -d $LP_TRUNK_NAME ]; then |
5534.2.4
by Mark Shuttleworth
Ensure date ranges are enforced by the DateWidget and use that for membership |
34 |
echo "Error: no trunk found, please run rocketfuel-setup" |
35 |
exit 1 |
|
4363.1.3
by Mark Shuttleworth
Make rocketfuel-branch work when disconnected |
36 |
fi
|
5534.2.4
by Mark Shuttleworth
Ensure date ranges are enforced by the DateWidget and use that for membership |
37 |
|
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
38 |
bzr branch $LP_TRUNK_NAME $1 |
4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
39 |
cd $1 |
6567.1.3
by Barry Warsaw
parameterize all paths so that launchpad code can live anywhere. |
40 |
utilities/link-external-sourcecode |
4317.1.1
by Mark Shuttleworth
Initial batch of setup and maintenance scripts for LP |
41 |
make |