/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 Makefile

  • Committer: John Arbash Meinel
  • Date: 2009-11-17 23:05:04 UTC
  • mto: This revision was merged to the branch mainline in revision 4806.
  • Revision ID: john@arbash-meinel.com-20091117230504-p05mbkihim789aq7
Document a bit more what 193 means, and why we are testing it.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2008, 2009 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
39
39
check: docs check-nodocs
40
40
 
41
41
check-nodocs: extensions
42
 
        # Generate a stream for PQM to watch.
43
 
        $(PYTHON) -Werror -O ./bzr selftest --subunit $(tests) | tee selftest.log
44
 
        # Check that there were no errors reported.
45
 
        subunit-stats < selftest.log
 
42
        $(PYTHON) -Werror -O ./bzr selftest -1v $(tests)
46
43
 
47
44
# Run Python style checker (apt-get install pyflakes)
48
45
#
188
185
        $(PYTHON) tools/package_docs.py doc/en $(DOC_WEBSITE_BUILD)
189
186
        $(PYTHON) tools/package_docs.py doc/es $(DOC_WEBSITE_BUILD)
190
187
        $(PYTHON) tools/package_docs.py doc/ru $(DOC_WEBSITE_BUILD)
191
 
        $(PYTHON) tools/package_docs.py doc/ja $(DOC_WEBSITE_BUILD)
192
188
        $(PYTHON) tools/package_docs.py doc/developers $(DOC_WEBSITE_BUILD)
193
189
 
194
190
 
202
198
 
203
199
# translate txt docs to html
204
200
derived_txt_files = \
 
201
        doc/en/user-reference/bzr_man.txt \
205
202
        doc/en/release-notes/NEWS.txt
206
203
txt_all = \
207
204
        doc/en/tutorials/tutorial.txt \
214
211
        doc/ja/tutorials/centralized_workflow.txt \
215
212
        $(wildcard doc/*/mini-tutorial/index.txt) \
216
213
        $(wildcard doc/*/user-guide/index-plain.txt) \
217
 
        doc/en/admin-guide/index-plain.txt \
218
214
        $(wildcard doc/es/guia-usario/*.txt) \
219
215
        $(derived_txt_files) \
220
216
        doc/en/upgrade-guide/index.txt \
224
220
        doc/en/user-guide/index.txt \
225
221
        doc/es/user-guide/index.txt \
226
222
        doc/ja/user-guide/index.txt \
227
 
        doc/ru/user-guide/index.txt \
228
 
        doc/en/admin-guide/index.txt
 
223
        doc/ru/user-guide/index.txt
229
224
txt_files = $(filter-out $(txt_nohtml), $(txt_all))
230
225
htm_files = $(patsubst %.txt, %.html, $(txt_files)) 
231
226
 
283
278
#doc/ru/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/ru/user-guide)) 
284
279
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
285
280
#
286
 
doc/en/admin-guide/index-plain.html: $(wildcard $(addsuffix /*.txt, doc/en/admin-guide)) 
287
 
        $(rst2html) --stylesheet=../../default.css $(dir $@)index-plain.txt $@
288
 
 
289
281
doc/developers/%.html: doc/developers/%.txt
290
282
        $(rst2html) --stylesheet=../default.css $< $@
291
283
 
298
290
%.html: %.txt
299
291
        $(rst2html) --stylesheet=../../default.css $< $@
300
292
 
 
293
doc/en/user-reference/bzr_man.txt: $(MAN_DEPENDENCIES)
 
294
        $(PYTHON) tools/generate_docs.py -o $@ rstx
 
295
 
301
296
doc/en/release-notes/NEWS.txt: NEWS
302
297
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
303
298
 
409
404
 
410
405
### Packaging Targets ###
411
406
 
412
 
.PHONY: dist check-dist-tarball
 
407
.PHONY: dist dist-upload-escudero check-dist-tarball
413
408
 
414
409
# build a distribution source tarball
415
410
#
437
432
        tar Cxz $$tmpdir -f $$tarball && \
438
433
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
439
434
        rm -rf $$tmpdir
 
435
 
 
436
 
 
437
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
438
# and verify that it can be downloaded ok.
 
439
dist-upload-escudero:
 
440
        version=`./bzr version --short` && \
 
441
        tarball=../bzr-$$version.tar.gz && \
 
442
        scp $$tarball $$tarball.sig \
 
443
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
444
                && \
 
445
        echo verifying over http... && \
 
446
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
447
                | diff -s - $$tarball && \
 
448
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
449
                | diff -s - $$tarball.sig