~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Martin Pool
  • Date: 2008-10-20 08:09:33 UTC
  • mto: This revision was merged to the branch mainline in revision 3787.
  • Revision ID: mbp@sourcefrog.net-20081020080933-xba7zw9ffozm6brl
Build zip file from 'make dist' and document this; also tweak standard announcement mail

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
 
210
210
.PHONY: dist dist-upload-escudero check-dist-tarball
211
211
 
212
 
# build a distribution tarball.
 
212
# build a distribution tarball and zip file.
213
213
#
214
214
# this method of copying the pyrex generated files is a bit ugly; it would be
215
215
# nicer to generate it from distutils.
216
 
#
217
 
# these are a bit ubuntu-specific.
218
216
dist: 
219
217
        version=`./bzr version --short` && \
220
218
        echo Building distribution of bzr $$version && \
221
219
        expbasedir=`mktemp -t -d tmp_bzr_dist.XXXXXXXXXX` && \
222
220
        expdir=$$expbasedir/bzr-$$version && \
223
221
        tarball=$$PWD/../bzr-$$version.tar.gz && \
 
222
        zipball=$$PWD/../bzr-$$version.zip && \
224
223
        $(MAKE) clean && \
225
224
        $(MAKE) && \
226
225
        bzr export $$expdir && \
227
226
        cp bzrlib/*.c $$expdir/bzrlib/. && \
228
227
        tar cfz $$tarball -C $$expbasedir bzr-$$version && \
 
228
        (cd $$expbasedir && zip -r $$zipball bzr-$$version) && \
229
229
        gpg --detach-sign $$tarball && \
230
 
        echo $$tarball done. && \
 
230
        gpg --detach-sign $$zipball && \
231
231
        rm -rf $$expbasedir
232
232
 
233
233
# run all tests in a previously built tarball
245
245
dist-upload-escudero:
246
246
        version=`./bzr version --short` && \
247
247
        tarball=../bzr-$$version.tar.gz && \
248
 
        scp $$tarball $$tarball.sig \
 
248
        zipball=../bzr-$$version.zip && \
 
249
        scp $$zipball $$zipball.sig $$tarball $$tarball.sig \
249
250
            escudero.ubuntu.com:/srv/bazaar.canonical.com/www/releases/src \
250
251
                && \
251
252
        echo verifying over http... && \
 
253
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip \
 
254
                | diff -s - $$zipball && \
 
255
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.zip.sig \
 
256
                | diff -s - $$zipball.sig 
252
257
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz \
253
258
                | diff -s - $$tarball && \
254
259
        curl http://bazaar-vcs.org/releases/src/bzr-$$version.tar.gz.sig \