~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: John Arbash Meinel
  • Date: 2009-08-17 18:52:01 UTC
  • mto: This revision was merged to the branch mainline in revision 4629.
  • Revision ID: john@arbash-meinel.com-20090817185201-5xmgwhtn9nv2p4h8
Fix bzrlib.missing to not directly load the graph, etc.

Look at bzrlib.annotate, but it needs to inject a node into the graph, which
isn't supported yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2011 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
28
28
PLUGIN_TARGET=plugin-release
29
29
PYTHON_BUILDFLAGS=
30
30
 
31
 
.PHONY: all clean realclean extensions pyflakes api-docs check-nodocs check
 
31
.PHONY: all clean extensions pyflakes api-docs check-nodocs check
32
32
 
33
33
all: extensions
34
34
 
39
39
check: docs check-nodocs
40
40
 
41
41
check-nodocs: extensions
42
 
        set -e
43
 
        # Generate a stream for PQM to watch.
44
 
        -$(RM) -f selftest.log
45
 
        $(PYTHON) -Werror -Wignore::ImportWarning -O ./bzr selftest --subunit $(tests) | tee selftest.log
46
 
        # An empty log file should catch errors in the $(PYTHON)
47
 
        # command above (the '|' swallow any errors since 'make'
48
 
        # sees the 'tee' exit code for the whole line
49
 
        if [ ! -s selftest.log ] ; then exit 1 ; fi
50
 
        # Check that there were no errors reported.
51
 
        subunit-stats < selftest.log
 
42
        $(PYTHON) -Werror -O ./bzr selftest -1v $(tests)
 
43
        @echo "Running all tests with no locale."
 
44
        LC_CTYPE= LANG=C LC_ALL= ./bzr selftest -1v $(tests) 2>&1 | sed -e 's/^/[ascii] /'
52
45
 
53
46
# Run Python style checker (apt-get install pyflakes)
54
47
#
66
59
        $(PYTHON) setup.py clean
67
60
        -find . -name "*.pyc" -o -name "*.pyo" -o -name "*.so" | xargs rm -f
68
61
 
69
 
realclean: clean
70
 
        # Remove files which are autogenerated but included by the tarball.
71
 
        rm -f bzrlib/*_pyx.c
72
 
        rm -f bzrlib/_simple_set_pyx.h bzrlib/_simple_set_pyx_api.h
73
 
 
74
62
# Build API documentation
75
63
docfiles = bzr bzrlib
76
64
api-docs:
77
65
        mkdir -p api/html
78
 
        pydoctor --make-html --docformat='restructuredtext' --html-output=api/html $(docfiles)
 
66
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --html -o api/html --docformat 'restructuredtext en' $(docfiles)
 
67
check-api-docs:
 
68
        PYTHONPATH=$(PWD) $(PYTHON) tools/bzr_epydoc --check --docformat 'restructuredtext en' $(docfiles)
79
69
 
80
70
# build tags for emacs and vim
81
71
TAGS:
87
77
# these are treated as phony so they'll always be rebuilt - it's pretty quick
88
78
.PHONY: TAGS tags
89
79
 
90
 
 
91
80
### Documentation ###
92
81
 
93
 
# Default to plain documentation for maximum backwards compatibility.
94
 
# (Post 2.0, the defaults will most likely be Sphinx-style instead.)
95
 
 
96
 
docs: docs-plain
97
 
 
98
 
clean-docs: clean-plain
99
 
 
100
 
html-docs: html-plain
101
 
 
102
 
 
103
 
### Man-page Documentation ###
104
 
 
105
 
MAN_DEPENDENCIES = bzrlib/builtins.py \
106
 
        $(wildcard bzrlib/*.py) \
107
 
        $(wildcard bzrlib/*/*.py) \
108
 
        tools/generate_docs.py \
109
 
        $(wildcard $(addsuffix /*.txt, bzrlib/help_topics/en)) 
110
 
 
111
 
MAN_PAGES = man1/bzr.1
112
 
man1/bzr.1: $(MAN_DEPENDENCIES)
113
 
        $(PYTHON) tools/generate_docs.py -o $@ man
114
 
 
115
 
 
116
 
### Sphinx-style Documentation ###
117
 
 
118
 
# Build the documentation. To keep the dependencies down to a minimum
119
 
# for distro packagers, we only build the html documentation by default.
120
 
# Sphinx 0.6 or later is preferred for the best rendering, though
121
 
# Sphinx 0.4 or later should work. See http://sphinx.pocoo.org/index.html
122
 
# for installation instructions.
123
 
docs-sphinx: html-sphinx
124
 
 
125
 
# Clean out generated documentation
126
 
clean-sphinx:
127
 
        cd doc/en && make clean
128
 
        cd doc/es && make clean
129
 
        cd doc/ja && make clean
130
 
        cd doc/ru && make clean
131
 
        cd doc/developers && make clean
132
 
 
133
 
SPHINX_DEPENDENCIES = \
134
 
        doc/en/release-notes/index.txt \
135
 
        doc/en/user-reference/index.txt \
136
 
        doc/es/Makefile \
137
 
        doc/es/make.bat \
138
 
        doc/ja/Makefile \
139
 
        doc/ja/make.bat \
140
 
        doc/ru/Makefile \
141
 
        doc/ru/make.bat \
142
 
        doc/developers/Makefile \
143
 
        doc/developers/make.bat
144
 
 
145
 
NEWS_FILES = $(wildcard doc/en/release-notes/bzr-*.txt)
146
 
 
147
 
doc/en/user-reference/index.txt: $(MAN_DEPENDENCIES)
148
 
        $(PYTHON) tools/generate_docs.py -o $@ rstx
149
 
 
150
 
doc/en/release-notes/index.txt: $(NEWS_FILES) tools/generate_release_notes.py
151
 
        $(PYTHON) tools/generate_release_notes.py $@ $(NEWS_FILES)
152
 
 
153
 
doc/%/Makefile: doc/en/Makefile
154
 
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
155
 
 
156
 
doc/%/make.bat: doc/en/make.bat
157
 
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
158
 
 
159
 
# Build the html docs using Sphinx.
160
 
html-sphinx: $(SPHINX_DEPENDENCIES)
161
 
        cd doc/en && make html
162
 
        cd doc/es && make html
163
 
        cd doc/ru && make html
164
 
        cd doc/ja && make html
165
 
        cd doc/developers && make html
166
 
 
167
 
# Build the PDF docs using Sphinx. This requires numerous LaTeX
168
 
# packages. See http://sphinx.pocoo.org/builders.html for details.
169
 
# Note: We don't currently build PDFs for the Russian docs because
170
 
# they require additional packages to be installed (to handle
171
 
# Russian hyphenation rules, etc.)
172
 
pdf-sphinx: $(SPHINX_DEPENDENCIES)
173
 
        cd doc/en && make latex
174
 
        cd doc/es && make latex
175
 
        cd doc/ja && make latex
176
 
        cd doc/developers && make latex
177
 
        cd doc/en/_build/latex && make all-pdf
178
 
        cd doc/es/_build/latex && make all-pdf
179
 
        cd doc/developers/_build/latex && make all-pdf
180
 
 
181
 
# Build the CHM (Windows Help) docs using Sphinx.
182
 
# Note: HtmlHelp Workshop needs to be used on the generated hhp files
183
 
# to generate the final chm files.
184
 
chm-sphinx: $(SPHINX_DEPENDENCIES)
185
 
        cd doc/en && make htmlhelp
186
 
        cd doc/es && make htmlhelp
187
 
        cd doc/ru && make htmlhelp
188
 
        cd doc/ja && make htmlhelp
189
 
        cd doc/developers && make htmlhelp
190
 
 
191
 
 
192
 
### Documentation Website ###
193
 
 
194
 
# Where to build the website
195
 
DOC_WEBSITE_BUILD = build_doc_website
196
 
 
197
 
# Build and package docs into a website, complete with downloads.
198
 
doc-website: html-sphinx pdf-sphinx
199
 
        $(PYTHON) tools/package_docs.py doc/en $(DOC_WEBSITE_BUILD)
200
 
        $(PYTHON) tools/package_docs.py doc/es $(DOC_WEBSITE_BUILD)
201
 
        $(PYTHON) tools/package_docs.py doc/ru $(DOC_WEBSITE_BUILD)
202
 
        $(PYTHON) tools/package_docs.py doc/ja $(DOC_WEBSITE_BUILD)
203
 
        $(PYTHON) tools/package_docs.py doc/developers $(DOC_WEBSITE_BUILD)
204
 
 
205
 
 
206
 
### Plain Documentation ###
207
 
 
208
 
# While Sphinx is the preferred tool for building documentation, we still
209
 
# support our "plain" html documentation so that Sphinx is not a hard
210
 
# dependency for packagers on older platforms.
211
 
 
212
 
rst2html = $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
 
82
# set PRETTY to get docs that look like the Bazaar web site
 
83
ifdef PRETTY
 
84
rst2html := $(PYTHON) tools/rst2prettyhtml.py doc/bazaar-vcs.org.kid 
 
85
else
 
86
rst2html := $(PYTHON) tools/rst2html.py --link-stylesheet --footnote-references=superscript --halt=warning
 
87
endif
213
88
 
214
89
# translate txt docs to html
215
 
derived_txt_files = \
 
90
derived_txt_files := \
 
91
        doc/en/user-reference/bzr_man.txt \
216
92
        doc/en/release-notes/NEWS.txt
217
 
txt_all = \
 
93
txt_files := \
218
94
        doc/en/tutorials/tutorial.txt \
219
95
        doc/en/tutorials/using_bazaar_with_launchpad.txt \
220
96
        doc/en/tutorials/centralized_workflow.txt \
221
 
        $(wildcard doc/es/tutorials/*.txt) \
222
 
                $(wildcard doc/ru/tutorials/*.txt) \
223
 
        doc/ja/tutorials/tutorial.txt \
224
 
        doc/ja/tutorials/using_bazaar_with_launchpad.txt \
225
 
        doc/ja/tutorials/centralized_workflow.txt \
 
97
        $(wildcard doc/ru/tutorials/*.txt) \
226
98
        $(wildcard doc/*/mini-tutorial/index.txt) \
227
 
        $(wildcard doc/*/user-guide/index-plain.txt) \
228
 
        doc/en/admin-guide/index-plain.txt \
229
 
        $(wildcard doc/es/guia-usario/*.txt) \
 
99
        $(wildcard doc/*/user-guide/index.txt) \
230
100
        $(derived_txt_files) \
 
101
        doc/en/developer-guide/HACKING.txt \
231
102
        doc/en/upgrade-guide/index.txt \
 
103
        $(wildcard doc/es/guia-usario/*.txt) \
 
104
        doc/es/mini-tutorial/index.txt \
232
105
        doc/index.txt \
233
106
        $(wildcard doc/index.*.txt)
234
 
txt_nohtml = \
235
 
        doc/en/user-guide/index.txt \
236
 
        doc/es/user-guide/index.txt \
237
 
        doc/ja/user-guide/index.txt \
238
 
        doc/ru/user-guide/index.txt \
239
 
        doc/en/admin-guide/index.txt
240
 
txt_files = $(filter-out $(txt_nohtml), $(txt_all))
241
 
htm_files = $(patsubst %.txt, %.html, $(txt_files)) 
242
 
 
243
 
non_txt_files = \
 
107
non_txt_files := \
244
108
       doc/default.css \
245
 
       $(wildcard doc/*/bzr-en-quick-reference.svg) \
246
 
       $(wildcard doc/*/bzr-en-quick-reference.png) \
247
 
       $(wildcard doc/*/bzr-en-quick-reference.pdf) \
248
 
       $(wildcard doc/*/bzr-es-quick-reference.svg) \
249
 
       $(wildcard doc/*/bzr-es-quick-reference.png) \
250
 
       $(wildcard doc/*/bzr-es-quick-reference.pdf) \
251
 
       $(wildcard doc/*/bzr-ru-quick-reference.svg) \
252
 
       $(wildcard doc/*/bzr-ru-quick-reference.png) \
253
 
       $(wildcard doc/*/bzr-ru-quick-reference.pdf) \
 
109
       $(wildcard doc/*/quick-reference/bzr-quick-reference.svg) \
 
110
       $(wildcard doc/*/quick-reference/bzr-quick-reference.png) \
 
111
       $(wildcard doc/*/quick-reference/bzr-quick-reference.pdf) \
254
112
       $(wildcard doc/*/user-guide/images/*.png)
 
113
htm_files := $(patsubst %.txt, %.html, $(txt_files)) 
255
114
 
256
115
# doc/developers/*.txt files that should *not* be individually
257
116
# converted to HTML
258
 
dev_txt_nohtml = \
 
117
dev_txt_nohtml := \
259
118
        doc/developers/add.txt \
260
119
        doc/developers/annotate.txt \
261
120
        doc/developers/bundle-creation.txt \
263
122
        doc/developers/diff.txt \
264
123
        doc/developers/directory-fingerprints.txt \
265
124
        doc/developers/gc.txt \
266
 
        doc/developers/implementation-notes.txt \
267
125
        doc/developers/incremental-push-pull.txt \
268
 
        doc/developers/index.txt \
269
126
        doc/developers/initial-push-pull.txt \
270
127
        doc/developers/merge-scaling.txt \
271
 
        doc/developers/miscellaneous-notes.txt \
272
128
        doc/developers/missing.txt \
273
129
        doc/developers/performance-roadmap-rationale.txt \
274
130
        doc/developers/performance-use-case-analysis.txt \
275
131
        doc/developers/planned-change-integration.txt \
276
132
        doc/developers/planned-performance-changes.txt \
277
 
        doc/developers/plans.txt \
278
 
        doc/developers/process.txt \
279
133
        doc/developers/revert.txt \
280
 
        doc/developers/specifications.txt \
281
134
        doc/developers/status.txt \
282
135
        doc/developers/uncommit.txt
283
136
 
284
 
dev_txt_all = $(wildcard $(addsuffix /*.txt, doc/developers))
285
 
dev_txt_files = $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
286
 
dev_htm_files = $(patsubst %.txt, %.html, $(dev_txt_files)) 
287
 
 
288
 
doc/en/user-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/user-guide)) 
289
 
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
290
 
 
291
 
#doc/es/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/es/user-guide)) 
292
 
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
293
 
#
294
 
#doc/ru/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/ru/user-guide)) 
295
 
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
296
 
#
297
 
doc/en/admin-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/admin-guide)) 
298
 
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
 
137
dev_txt_all := $(wildcard $(addsuffix /*.txt, doc/developers))
 
138
dev_txt_files := $(filter-out $(dev_txt_nohtml), $(dev_txt_all))
 
139
dev_htm_files := $(patsubst %.txt, %.html, $(dev_txt_files)) 
 
140
 
 
141
doc/%/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/%/user-guide)) 
 
142
        $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
 
143
 
 
144
# Set the paper size for PDF files.
 
145
# Options:  'a4' (ISO A4 size), 'letter' (US Letter size)
 
146
PAPERSIZE = a4
 
147
# TODO: Add generation for Russian PDF
 
148
PDF_DOCS := doc/en/user-guide/user-guide.$(PAPERSIZE).pdf
 
149
 
 
150
# Copy and modify the RST sources, and convert SVG images to PDF
 
151
# files for use a images in the LaTeX-generated PDF.
 
152
# Then generate the PDF output from the modified RST sources.
 
153
doc/en/user-guide/user-guide.$(PAPERSIZE).pdf: $(wildcard $(addsuffix /*.txt, doc/en/user-guide))
 
154
        mkdir -p doc/en/user-guide/latex_prepared
 
155
        $(PYTHON) tools/prepare_for_latex.py \
 
156
            --out-dir=doc/en/user-guide/latex_prepared \
 
157
            --in-dir=doc/en/user-guide
 
158
        cd doc/en/user-guide/latex_prepared && \
 
159
            $(PYTHON) ../../../../tools/rst2pdf.py \
 
160
                --documentoptions=10pt,$(PAPERSIZE)paper \
 
161
                --input-encoding=UTF-8:strict --output-encoding=UTF-8:strict \
 
162
                --strict --title="Bazaar User Guide" \
 
163
                index.txt ../user-guide.$(PAPERSIZE).pdf
299
164
 
300
165
doc/developers/%.html: doc/developers/%.txt
301
166
        $(rst2html) --stylesheet=../default.css $< $@
307
172
        $(rst2html) --stylesheet=default.css $< $@
308
173
 
309
174
%.html: %.txt
310
 
        $(rst2html) --stylesheet=../../default.css $< "$@"
311
 
 
312
 
doc/en/release-notes/NEWS.txt: $(NEWS_FILES) tools/generate_release_notes.py
313
 
        $(PYTHON) tools/generate_release_notes.py "$@" $(NEWS_FILES)
 
175
        $(rst2html) --stylesheet=../../default.css $< $@
 
176
 
 
177
MAN_DEPENDENCIES = bzrlib/builtins.py \
 
178
        $(wildcard bzrlib/*.py) \
 
179
        $(wildcard bzrlib/*/*.py) \
 
180
        tools/generate_docs.py \
 
181
        $(wildcard $(addsuffix /*.txt, bzrlib/help_topics/en)) 
 
182
 
 
183
doc/en/user-reference/bzr_man.txt: $(MAN_DEPENDENCIES)
 
184
        $(PYTHON) tools/generate_docs.py -o $@ rstx
 
185
 
 
186
doc/en/release-notes/NEWS.txt: NEWS
 
187
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
 
188
 
 
189
MAN_PAGES = man1/bzr.1
 
190
man1/bzr.1: $(MAN_DEPENDENCIES)
 
191
        $(PYTHON) tools/generate_docs.py -o $@ man
314
192
 
315
193
upgrade_guide_dependencies =  $(wildcard $(addsuffix /*.txt, doc/en/upgrade-guide)) 
316
194
 
317
195
doc/en/upgrade-guide/index.html: $(upgrade_guide_dependencies)
318
196
        $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
319
197
 
 
198
# build a png of our performance task list
 
199
 
200
# this is no longer built by default; you can build it if you want to look at it
 
201
doc/developers/performance.png: doc/developers/performance.dot
 
202
        @echo Generating $@
 
203
        @dot -Tpng $< -o$@ || echo "Dot not installed; skipping generation of $@"
 
204
 
320
205
derived_web_docs = $(htm_files) $(dev_htm_files) 
321
206
WEB_DOCS = $(derived_web_docs) $(non_txt_files)
322
207
ALL_DOCS = $(derived_web_docs) $(MAN_PAGES)
323
208
 
324
209
# the main target to build all the docs
325
 
docs-plain: $(ALL_DOCS)
 
210
docs: $(ALL_DOCS)
326
211
 
327
212
# produce a tree containing just the final docs, ready for uploading to the web
328
 
HTMLDIR = html_docs
329
 
html-plain: docs-plain
 
213
HTMLDIR := html_docs
 
214
html-docs: docs
330
215
        $(PYTHON) tools/win32/ostools.py copytree $(WEB_DOCS) $(HTMLDIR)
331
216
 
 
217
# Produce PDF documents.  Requires pdfLaTeX, rubber, and Inkscape.
 
218
pdf-docs: $(PDF_DOCS)
 
219
 
332
220
# clean produced docs
333
 
clean-plain:
 
221
clean-docs:
334
222
        $(PYTHON) tools/win32/ostools.py remove $(ALL_DOCS) \
335
223
            $(HTMLDIR) $(derived_txt_files)
336
 
 
337
 
 
338
 
### Miscellaneous Documentation Targets ###
339
 
 
340
 
# build a png of our performance task list
341
 
# this is no longer built by default; you can build it if you want to look at it
342
 
doc/developers/performance.png: doc/developers/performance.dot
343
 
        @echo Generating $@
344
 
        @dot -Tpng $< -o$@ || echo "Dot not installed; skipping generation of $@"
 
224
        rm -f doc/*/user-guide/*.pdf
 
225
        rm -rf doc/*/user-guide/latex_prepared
345
226
 
346
227
 
347
228
### Windows Support ###
351
232
# These are files that need to be copied into the build location to boostrap
352
233
# the build process.
353
234
# Note that the path is relative to tools/win32
354
 
BUILDOUT_FILES = buildout.cfg \
 
235
BUILDOUT_FILES := buildout.cfg \
355
236
        buildout-templates/bin/build-installer.bat.in \
356
237
        ostools.py bootstrap.py
357
238
 
417
298
        $(PYTHON) tools/win32/ostools.py remove bzr-*win32.exe
418
299
        $(PYTHON) tools/win32/ostools.py remove dist
419
300
 
420
 
 
421
 
# i18n targets
422
 
 
423
 
.PHONY: update-pot po/bzr.pot
424
 
update-pot: po/bzr.pot
425
 
 
426
 
TRANSLATABLE_PYFILES:=$(shell find bzrlib -name '*.py' \
427
 
                | grep -v 'bzrlib/tests/' \
428
 
                | grep -v 'bzrlib/doc' \
429
 
                )
430
 
 
431
 
po/bzr.pot: $(PYFILES) $(DOCFILES)
432
 
        $(PYTHON) ./bzr export-pot > po/bzr.pot
433
 
        echo $(TRANSLATABLE_PYFILES) | xargs \
434
 
          xgettext --package-name "bzr" \
435
 
          --msgid-bugs-address "<bazaar@canonical.com>" \
436
 
          --copyright-holder "Canonical" \
437
 
          --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
438
 
          -d bzr -p po -o bzr.pot
439
 
 
440
 
 
441
 
### Packaging Targets ###
442
 
 
443
 
.PHONY: dist check-dist-tarball
444
 
 
445
 
# build a distribution source tarball
 
301
.PHONY: dist dist-upload-escudero check-dist-tarball
 
302
 
 
303
# build a distribution tarball and zip file.
446
304
#
447
305
# this method of copying the pyrex generated files is a bit ugly; it would be
448
306
# nicer to generate it from distutils.
452
310
        expbasedir=`mktemp -t -d tmp_bzr_dist.XXXXXXXXXX` && \
453
311
        expdir=$$expbasedir/bzr-$$version && \
454
312
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
313
        zipball=$$PWD/../bzr-$$version.zip && \
455
314
        $(MAKE) clean && \
456
315
        $(MAKE) && \
457
316
        bzr export $$expdir && \
458
 
        cp bzrlib/*.c bzrlib/*.h $$expdir/bzrlib/. && \
 
317
        cp bzrlib/*.c $$expdir/bzrlib/. && \
459
318
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
 
319
        (cd $$expbasedir && zip -r $$zipball bzr-$$version) && \
460
320
        gpg --detach-sign $$tarball && \
 
321
        gpg --detach-sign $$zipball && \
461
322
        rm -rf $$expbasedir
462
323
 
463
324
# run all tests in a previously built tarball
468
329
        tar Cxz $$tmpdir -f $$tarball && \
469
330
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
470
331
        rm -rf $$tmpdir
 
332
 
 
333
 
 
334
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
335
# and verify that it can be downloaded ok.
 
336
dist-upload-escudero:
 
337
        version=`./bzr version --short` && \
 
338
        tarball=../bzr-$$version.tar.gz && \
 
339
        zipball=../bzr-$$version.zip && \
 
340
        scp $$zipball $$zipball.sig $$tarball $$tarball.sig \
 
341
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
342
                && \
 
343
        echo verifying over http... && \
 
344
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip \
 
345
                | diff -s - $$zipball && \
 
346
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip.sig \
 
347
                | diff -s - $$zipball.sig 
 
348
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
349
                | diff -s - $$tarball && \
 
350
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
351
                | diff -s - $$tarball.sig