/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: Joe Julian
  • Date: 2010-01-10 02:25:31 UTC
  • mto: (4634.119.7 2.0)
  • mto: This revision was merged to the branch mainline in revision 4959.
  • Revision ID: joe@julianfamily.org-20100110022531-wqk61rsagz8xsiga
Added MANIFEST.in to allow bdist_rpm to have all the required include files and tools. bdist_rpm will still fail to build correctly on some distributions due to a disttools bug http://bugs.python.org/issue644744

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)
 
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] /'
46
45
 
47
46
# Run Python style checker (apt-get install pyflakes)
48
47
#
202
201
 
203
202
# translate txt docs to html
204
203
derived_txt_files = \
 
204
        doc/en/user-reference/bzr_man.txt \
205
205
        doc/en/release-notes/NEWS.txt
206
206
txt_all = \
207
207
        doc/en/tutorials/tutorial.txt \
214
214
        doc/ja/tutorials/centralized_workflow.txt \
215
215
        $(wildcard doc/*/mini-tutorial/index.txt) \
216
216
        $(wildcard doc/*/user-guide/index-plain.txt) \
217
 
        doc/en/admin-guide/index-plain.txt \
218
217
        $(wildcard doc/es/guia-usario/*.txt) \
219
218
        $(derived_txt_files) \
220
219
        doc/en/upgrade-guide/index.txt \
224
223
        doc/en/user-guide/index.txt \
225
224
        doc/es/user-guide/index.txt \
226
225
        doc/ja/user-guide/index.txt \
227
 
        doc/ru/user-guide/index.txt \
228
 
        doc/en/admin-guide/index.txt
 
226
        doc/ru/user-guide/index.txt
229
227
txt_files = $(filter-out $(txt_nohtml), $(txt_all))
230
228
htm_files = $(patsubst %.txt, %.html, $(txt_files)) 
231
229
 
283
281
#doc/ru/user-guide/index.html: $(wildcard $(addsuffix /*.txt, doc/ru/user-guide)) 
284
282
#       $(rst2html) --stylesheet=../../default.css $(dir $@)index.txt $@
285
283
#
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
284
doc/developers/%.html: doc/developers/%.txt
290
285
        $(rst2html) --stylesheet=../default.css $< $@
291
286
 
298
293
%.html: %.txt
299
294
        $(rst2html) --stylesheet=../../default.css $< $@
300
295
 
 
296
doc/en/user-reference/bzr_man.txt: $(MAN_DEPENDENCIES)
 
297
        $(PYTHON) tools/generate_docs.py -o $@ rstx
 
298
 
301
299
doc/en/release-notes/NEWS.txt: NEWS
302
300
        $(PYTHON) -c "import shutil; shutil.copyfile('$<', '$@')"
303
301
 
409
407
 
410
408
### Packaging Targets ###
411
409
 
412
 
.PHONY: dist check-dist-tarball
 
410
.PHONY: dist dist-upload-escudero check-dist-tarball
413
411
 
414
 
# build a distribution source tarball
 
412
# build a distribution tarball and zip file.
415
413
#
416
414
# this method of copying the pyrex generated files is a bit ugly; it would be
417
415
# nicer to generate it from distutils.
421
419
        expbasedir=`mktemp -t -d tmp_bzr_dist.XXXXXXXXXX` && \
422
420
        expdir=$$expbasedir/bzr-$$version && \
423
421
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
422
        zipball=$$PWD/../bzr-$$version.zip && \
424
423
        $(MAKE) clean && \
425
424
        $(MAKE) && \
426
425
        bzr export $$expdir && \
427
 
        cp bzrlib/*.c bzrlib/*.h $$expdir/bzrlib/. && \
 
426
        cp bzrlib/*.c $$expdir/bzrlib/. && \
428
427
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
 
428
        (cd $$expbasedir && zip -r $$zipball bzr-$$version) && \
429
429
        gpg --detach-sign $$tarball && \
 
430
        gpg --detach-sign $$zipball && \
430
431
        rm -rf $$expbasedir
431
432
 
432
433
# run all tests in a previously built tarball
437
438
        tar Cxz $$tmpdir -f $$tarball && \
438
439
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
439
440
        rm -rf $$tmpdir
 
441
 
 
442
 
 
443
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
444
# and verify that it can be downloaded ok.
 
445
dist-upload-escudero:
 
446
        version=`./bzr version --short` && \
 
447
        tarball=../bzr-$$version.tar.gz && \
 
448
        zipball=../bzr-$$version.zip && \
 
449
        scp $$zipball $$zipball.sig $$tarball $$tarball.sig \
 
450
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
451
                && \
 
452
        echo verifying over http... && \
 
453
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip \
 
454
                | diff -s - $$zipball && \
 
455
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip.sig \
 
456
                | diff -s - $$zipball.sig 
 
457
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
458
                | diff -s - $$tarball && \
 
459
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
460
                | diff -s - $$tarball.sig