/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/ppa.txt

  • Committer: John Ferlito
  • Date: 2009-05-25 10:59:42 UTC
  • mto: (4665.4.1 ppa-doc)
  • mto: This revision was merged to the branch mainline in revision 4693.
  • Revision ID: johnf@inodes.org-20090525105942-5xkcbe37m1u5lp5z
Update packaging scripts to make deployment a bit easier
Update documentation for deploying to PPA

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
release packages is as simple as::
108
108
 
109
109
  cd ~/dev/bzr/releases/packaging
110
 
  ln ~/dev/bzr/releases/bzr-1.6.tar.gz ./bzr_1.6.orig.tar.gz
111
 
  export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid"
 
110
  export VERSION="1.6~beta3-1~bazaar1"
 
111
  export PACKAGE="bzr"
 
112
  export UBUNTU_RELEASES="dapper gutsy hardy intrepid jaunty"
112
113
  ~/dev/bzr/bzr.dev/tools/packaging/update-packaging-branches.sh
113
 
  ~/dev/bzr/bzr.dev/tools/packaging/update-changelogs.sh 1.6~beta3-1~bazaar1
114
 
  ~/dev/bzr/bzr.dev/tools/packaging/build-packages
115
 
  dput bzr-beta-ppa bzr_1.6~beta3-1~bazaar1*.changes
 
114
  ~/dev/bzr/bzr.dev/tools/packaging/update-changelogs.sh
 
115
  ~/dev/bzr/bzr.dev/tools/packaging/update-control.sh 1.5 1.6 1.7
 
116
  ~/dev/bzr/bzr.dev/tools/packaging/build-packages.sh
 
117
  dput bzr-beta-ppa bzr_$VERSION*.changes
 
118
 
 
119
Rinse and repeat for all the plugins by changing VERSION and PACKAGE.
116
120
 
117
121
Long Form
118
122
~~~~~~~~~
121
125
   release. Such as ``~/dev/bzr/releases/packaging/hardy``. In each of these
122
126
   branches, you will produce the package for the release.
123
127
 
 
128
   The scripts will also create the branches and produce packages for
 
129
   bzrtools and bzr-svn.
 
130
 
124
131
#. Decide on the final version number.  It should be of this form::
125
132
 
126
133
     bzr-1.6~beta3-1~bazaar1~hardy1
135
142
   Final releases will use a release string of the form:
136
143
   ``bzr-1.6-1~bazaar1~hardy1``
137
144
 
 
145
   Set this base of this up as a usable environment variable::
 
146
 
 
147
      export VERSION="1.6~beta3-1~bazaar1"
 
148
 
138
149
#. Export the distroreleases that you will be packaging for::
139
150
 
140
 
      export UBUNTU_RELEASES="dapper feisty gutsy hardy intrepid jaunty"
 
151
      export UBUNTU_RELEASES="dapper gutsy hardy intrepid jaunty"
 
152
 
 
153
#. Export the program you are packaging::
 
154
 
 
155
      export PACKAGE="bzr"
141
156
 
142
157
#. Checkout (or update) the packaging branch for each supported release::
143
158
 
158
173
      Build-Depends-Indep: bzr (>= 1.6~), rsync
159
174
      Depends: ${python:Depends}, bzr (>= 1.6~), bzr (<< 1.7~), patch
160
175
 
 
176
   There is a helper script which will update the contro file and commit it
 
177
   for all of your ``$UBUNTU_RELEASES``. It is available as::
 
178
 
 
179
    tools/packaging/update-control.sh
 
180
 
 
181
   The must supply the versions as arguments as follows
 
182
   OLD_VERSION CURRENT_VERSION NEXT_VERSION, such as::
 
183
 
 
184
    tools/packaging/update-control.sh 1.5 1.6 1.7
 
185
 
161
186
#. Make a new ``debian/changelog`` entry for the new release,
162
187
   either by using ``dch`` or just editing the file::
163
188
 
185
210
 
186
211
   You will also want to commit these changes into the packaging branch.
187
212
 
188
 
   There is a helper script which will update the changelog and commit it
 
213
   There is a helper script which will build all the packages
189
214
   for all of your ``$UBUNTU_RELEASES``. It is available as::
190
215
 
191
216
      tools/packaging/update-changelogs.sh
192
217
 
193
 
   You must supply the release string, such as::
194
 
 
195
 
      tools/packaging/update-changelogs.sh 1.6~beta3-1~bazaar1
196
 
 
197
 
   It will automatically append the distro numbering on the end.
198
 
 
199
218
#. Build the source packages::
200
219
 
201
220
      cd packaging-$DISTRO; bzr builddeb -S
207
226
 
208
227
   where ``$UID`` is the gpg key you want to use to sign the changes.
209
228
 
 
229
   There is a helper script which will build the package
 
230
   for all of your ``$UBUNTU_RELEASES``. It is available as::
 
231
 
 
232
      tools/packaging/build-packages.sh
 
233
 
210
234
#. Upload into the beta PPA for each release::
211
235
 
212
 
     dput bzr-beta-ppa bzr_1.6-1*.changes
 
236
     dput bzr-beta-ppa bzr*1.6-1*.changes
213
237
 
214
238
#. For final release versions, also copy it into the ``~bzr`` PPA::
215
239
 
239
263
   This should bring in both upstream and packaging changes for the new
240
264
   release, and it's updated as part of the bzr-svn release process.
241
265
 
 
266
   It's quite possible you will need to resolve some conflicts.
 
267
 
242
268
#. Run ``dch -v 0.4.15-1~bazaar1-hardy1 -D hardy`` or similar
243
269
 
244
270
#. Run ``bzr builddeb --source``