~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Ian Clatworthy
  • Date: 2010-02-19 03:02:07 UTC
  • mto: (4797.23.1 integration-2.1)
  • mto: This revision was merged to the branch mainline in revision 5055.
  • Revision ID: ian.clatworthy@canonical.com-20100219030207-zpbzx021zavx4sqt
What's New in 2.1 - a summary of changes since 2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 -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)
52
43
 
53
44
# Run Python style checker (apt-get install pyflakes)
54
45
#
415
406
 
416
407
### Packaging Targets ###
417
408
 
418
 
.PHONY: dist check-dist-tarball
 
409
.PHONY: dist dist-upload-escudero check-dist-tarball
419
410
 
420
411
# build a distribution source tarball
421
412
#
443
434
        tar Cxz $$tmpdir -f $$tarball && \
444
435
        $(MAKE) -C $$tmpdir/bzr-$$version check && \
445
436
        rm -rf $$tmpdir
 
437
 
 
438
 
 
439
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
440
# and verify that it can be downloaded ok.
 
441
dist-upload-escudero:
 
442
        version=`./bzr version --short` && \
 
443
        tarball=../bzr-$$version.tar.gz && \
 
444
        scp $$tarball $$tarball.sig \
 
445
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
446
                && \
 
447
        echo verifying over http... && \
 
448
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
449
                | diff -s - $$tarball && \
 
450
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
451
                | diff -s - $$tarball.sig