TAG buildbot-0.7.2
[buildbot.git] / Makefile
blobe50698713a05c19b5e86eeb7ff076ed9fc54a3b8
2 # this is just a convenience for developers, and to automate the release
3 # process a little bit. This Makefile is not included in the source tarball.
5 BBBASE = $(PWD)
6 TRIALARGS=
7 ifdef SVN
8 T=~/stuff/python/twisted/Twisted
9 TRIALARGS=--reporter=verbose
10 else
12 endif
13 ifdef T13
14 T=~/stuff/python/twisted/Twisted-1.3.0
15 TRIALARGS=-v
16 endif
17 PP = PYTHONPATH=$(BBBASE):$(T)
19 .PHONY: test
20 TRIAL=trial
21 TEST=buildbot.test
22 test:
23 $(PP) $(TRIAL) $(TRIALARGS) $(TEST)
26 #debuild -uc -us
28 deb-snapshot:
29 debchange --newversion `PYTHONPATH=. python -c "import buildbot; print buildbot.version"`.`date +%Y.%m.%d.%H.%M.%S` \
30 "snapshot build"
31 debuild binary
33 .PHONY: docs apidocs paper
34 docs:
35 $(MAKE) -C docs buildbot.info
36 apidocs:
37 PYTHONPATH=.:$(T) python docs/epyrun -o docs/reference
38 paper:
39 $(MAKE) -C docs/PyCon-2003 all
41 release: docs paper
42 chmod 0755 .
43 find buildbot contrib docs -type d -exec chmod 0755 {} \;
44 find bin buildbot contrib docs -type f -exec chmod 0644 {} \;
45 chmod 0644 ChangeLog MANIFEST* NEWS README* setup.py
46 chmod a+x bin/buildbot contrib/*.py
47 rm -rf _trial_temp
48 python ./setup.py clean
49 rm -f MANIFEST
50 python ./setup.py sdist