~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Andrew Bennetts
  • Date: 2008-04-28 06:24:16 UTC
  • mfrom: (3385 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3386.
  • Revision ID: andrew.bennetts@canonical.com-20080428062416-f7niegy7ekq4oftx
Merge from bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007 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
198
198
        $(PYTHON) tools/win32/ostools.py remove bzr-setup*.exe
199
199
        $(PYTHON) tools/win32/ostools.py remove bzr-*win32.exe
200
200
        $(PYTHON) tools/win32/ostools.py remove dist
 
201
 
 
202
.PHONY: dist dist-upload-escudero check-dist-tarball
 
203
 
 
204
# build a distribution tarball.
 
205
#
 
206
# this method of copying the pyrex generated files is a bit ugly; it would be
 
207
# nicer to generate it from distutils.
 
208
#
 
209
# these are a bit ubuntu-specific.
 
210
dist: 
 
211
        version=`./bzr version --short` && \
 
212
        echo Building distribution of bzr $$version && \
 
213
        expbasedir=`mktemp -d` && \
 
214
        expdir=$$expbasedir/bzr-$$version && \
 
215
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
216
        $(MAKE) clean && \
 
217
        $(MAKE) && \
 
218
        bzr export $$expdir && \
 
219
        cp bzrlib/*.c $$expdir/bzrlib/. && \
 
220
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
 
221
        gpg --detach-sign $$tarball && \
 
222
        echo $$tarball done.
 
223
 
 
224
# run all tests in a previously built tarball
 
225
check-dist-tarball:
 
226
        tmpdir=`mktemp -d` && \
 
227
        version=`./bzr version --short` && \
 
228
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
229
        tar Cxz $$tmpdir -f $$tarball && \
 
230
        $(MAKE) -C $$tmpdir/bzr-$$version check 
 
231
 
 
232
 
 
233
# upload previously built tarball to the download directory on bazaar-vcs.org,
 
234
# and verify that it can be downloaded ok.
 
235
dist-upload-escudero:
 
236
        version=`./bzr version --short` && \
 
237
        tarball=../bzr-$$version.tar.gz && \
 
238
        scp $$tarball $$tarball.sig \
 
239
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
 
240
                && \
 
241
        echo verifying over http... && \
 
242
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
 
243
                | diff -s - $$tarball && \
 
244
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \
 
245
                | diff -s - $$tarball.sig