PageRenderTime 38ms CodeModel.GetById 34ms RepoModel.GetById 0ms app.codeStats 0ms

/Makefile

http://showslow.googlecode.com/
Makefile | 57 lines | 32 code | 10 blank | 15 comment | 4 complexity | 9e304b31df05284221aa189c3fd3f4d7 MD5 | raw file
  1. all: update updatedb assets
  2. cd users && $(MAKE)
  3. update:
  4. if [ -d .svn ]; then svn update; fi
  5. updatedb:
  6. php dbupgrade.php
  7. cleantables:
  8. sed -e 's/Database: showslow.*/Database: showslow/' -e 's/ AUTO_INCREMENT=[0-9]*\b//' -i tables.sql
  9. rel: release
  10. release: assets
  11. ifndef v
  12. # Must specify version as 'v' param
  13. #
  14. # make rel v=1.1.1
  15. #
  16. else
  17. #
  18. # Tagging it with release tag
  19. #
  20. svn copy . https://showslow.googlecode.com/svn/tags/REL_${subst .,_,${v}}/
  21. #
  22. # Creating release tarball and zip
  23. #
  24. svn co http://showslow.googlecode.com/svn/tags/REL_${subst .,_,${v}}/ showslow_${v}
  25. (cd showslow_${v}/users && $(MAKE) .git)
  26. find showslow_${v} -type d -name .svn |xargs -n10 rm -rf
  27. cp asset_versions.php showslow_${v}/asset_versions.php
  28. # Not including Makefile into the package since it's not doing anything but release packaging
  29. tar -c showslow_${v} |gzip > showslow_${v}.tgz
  30. zip -r showslow_${v}.zip showslow_${v}
  31. rm -rf showslow_${v}
  32. # upload to Google Code repository (need account with enough permissions)
  33. googlecode/googlecode_upload.py -s "ShowSlow v${v} (zip)" -p showslow -l "Featured,Type-Archive,OpSys-All" showslow_${v}.zip
  34. googlecode/googlecode_upload.py -s "ShowSlow v${v} (tarball)" -p showslow -l "Featured,Type-Archive,OpSys-All" showslow_${v}.tgz
  35. rm showslow_${v}.tgz showslow_${v}.zip
  36. endif
  37. timeplot-patch:
  38. patch -p0 <timeplot.patch
  39. # from svn-assets project
  40. clean: noassets
  41. assets:
  42. if [ -d .svn ]; then svn status --verbose --xml |php svn-assets/svnassets.php > asset_versions.php; fi
  43. # uncomment next line when we'll have any CSS files to process
  44. #find ./ -name '*.css' -not -wholename "./timeplot/*" -not -wholename "./timeline/*" -not -wholename "./ajax/*" -not -wholename "./users/*" | xargs -n1 php svn-assets/cssurlrewrite.php
  45. noassets:
  46. cp svn-assets/no-assets.php asset_versions.php
  47. find ./ -name '*_deploy.css' | xargs -n10 rm -f