1
# Copyright (C) 2005, 2006, 2007 Canonical Ltd
1
# Copyright (C) 2005, 2006, 2007, 2008 Canonical Ltd
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
202
.PHONY: dist dist-upload-escudero check-dist-tarball
204
# build a distribution tarball.
206
# this method of copying the pyrex generated files is a bit ugly; it would be
207
# nicer to generate it from distutils.
209
# these are a bit ubuntu-specific.
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 && \
218
bzr export $$expdir && \
219
cp bzrlib/*.c $$expdir/bzrlib/. && \
220
tar cfz $$tarball -C $$expbasedir bzr-$$version && \
221
gpg --detach-sign $$tarball && \
224
# run all tests in a previously built 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
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 \
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