PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/tools/Makefile

http://pyicqt.googlecode.com/
Makefile | 53 lines | 41 code | 8 blank | 4 comment | 5 complexity | dabed40d90c391634ba6dc8fe5c26984 MD5 | raw file
 1#
 2# This makefile handles various developer tasks, such as creating distribution
 3# packages  It is not particularly useful to end users.
 4#
 5
 6TNAME=pyicq-t
 7EXTENSIONS=".tar.gz .rpm .deb"
 8
 9all:
10	@echo "This makefile is primarily for use by the author for creating"
11	@echo "distributions and such.  It serves no purpose to the end user."
12	@echo ""
13	@echo "Available commands are:"
14	@echo "srcdist   create a source distribution of the current version"
15	@echo "rpmdist   create a rpm distribution of the current version"
16	@echo "debdist   create a debian distribution of the current version"
17	@echo "md5sums   determine md5 checksums of all distributions of the current version"
18	@echo "dists     try to create all available distributions of the current version"
19	@echo "testinst  create a test install directory based off local source tree"
20
21dists: srcdist rpmdist debdist md5sums
22
23srcdist:
24	@ver=`cat src/legacy/glue.py | grep 'version =' | cut -f2 -d'"' | cut -f1 -d'"'`; \
25	files=`svn list -R`; \
26	rm -rf /tmp/$(TNAME)-$${ver}; \
27	rm -f /tmp/$(TNAME)-$${ver}.tar.gz; \
28	mkdir /tmp/$(TNAME)-$${ver}; \
29	tar --no-recursion -cf - $${files} | ( cd /tmp/$(TNAME)-$${ver}; tar -xf - ); \
30	mkdir -p /tmp/$(TNAME)-$${ver}/src/twistfix; \
31	cd src/twistfix; \
32	files=`svn list -R`; \
33	tar --no-recursion -cf - $${files} | ( cd /tmp/$(TNAME)-$${ver}/src/twistfix; tar -xf - ); \
34	cd /tmp; \
35	tar --owner=nobody --group=nobody -cvzf $(TNAME)-$${ver}.tar.gz $(TNAME)-$${ver}; \
36	ls -l $(TNAME)-$${ver}.tar.gz
37
38rpmdist:
39	@echo "Not supported yet."
40
41debdist:
42	@echo "Not supported yet."
43
44md5sums:
45	@ver=`cat src/legacy/glue.py | grep 'version =' | cut -f2 -d'"' | cut -f1 -d'"'`; \
46	cd /tmp; \
47	for E in `echo $(EXTENSIONS)`; do if [ -r "$(TNAME)-$${ver}$${E}" ]; then md5sum $(TNAME)-$${ver}$$E; else echo ".........Does not exist.........  $(TNAME)-$${ver}$$E"; fi; done
48
49testinst:
50	@files=`svn list -R`; \
51	rm -rf ../$(TNAME)-test; \
52	mkdir ../$(TNAME)-test; \
53	tar --no-recursion -cf - $${files} | ( cd ../$(TNAME)-test; tar -xvf - );