PageRenderTime 52ms CodeModel.GetById 28ms RepoModel.GetById 0ms app.codeStats 1ms

/shlomif-settings/Bash/Themes/themes/perl/module/format/source.bash

https://bitbucket.org/shlomif/shlomif-computer-settings
BASH | 96 lines | 79 code | 15 blank | 2 comment | 0 complexity | cca34d1d8a02373b07f044e9e76f2df2 MD5 | raw file
  1. load_common mymake
  2. load_common completion
  3. load_common prompt
  4. load_common hg
  5. cpan_base="$HOME/progs/perl/cpan"
  6. hg_base="$cpan_base"
  7. repos="$cpan_base/hg"
  8. trunk="$repos"
  9. base="$repos/Module-Format/Module-Format"
  10. this="$base"
  11. rw_repos_url="ssh://hg@bitbucket.org/shlomif/web-cpan"
  12. remote_repo="$rw_repos_url"
  13. # Make sure that gvim's filename completion ignores filenames that it should
  14. # not edit.
  15. __dist_name()
  16. {
  17. (cd "$this" &&
  18. cat META.yml | grep "^name:" | sed 's/^name: //'
  19. )
  20. }
  21. __version()
  22. {
  23. (cd "$this" &&
  24. cat META.yml | grep "^version:" | sed 's/^version: //'
  25. )
  26. }
  27. __test_distribution()
  28. {
  29. (
  30. cd "$this"
  31. ./Build disttest
  32. rm -fr "$(__dist_name)-$(__version)"
  33. )
  34. }
  35. __run_integration_tests()
  36. {
  37. (
  38. touch "$test_dir"/head.pl ;
  39. __display_integration_tests_results ;
  40. )
  41. }
  42. __display_integration_tests_results()
  43. {
  44. (
  45. cd "$test_dir" ;
  46. make ;
  47. )
  48. }
  49. __rerun_coverage()
  50. {
  51. (
  52. cd "$this"
  53. cover -delete
  54. HARNESS_PERL_SWITCHES=-MDevel::Cover make test
  55. cover
  56. )
  57. }
  58. __run_build_tests()
  59. {
  60. (
  61. cd "$trunk/tests/build/EU-MM/" ;
  62. ./test.sh ;
  63. )
  64. }
  65. t()
  66. {
  67. (cd "$this" ; ./Build runtest)
  68. }
  69. dt()
  70. {
  71. (cd "$this" ; ./Build distruntest)
  72. }
  73. cd $this
  74. prompt()
  75. {
  76. __prompt_cmd \
  77. "\$trunk=$trunk" \
  78. "\$cpan_base=$cpan_base" \
  79. "~=$HOME"
  80. }
  81. proj_name='Module-Format'