PageRenderTime 53ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/Makefile

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