PageRenderTime 48ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/shlomif-settings/Bash/Themes/old-themes/perl/find-lines/source.bash

https://bitbucket.org/shlomif/shlomif-computer-settings
BASH | 62 lines | 52 code | 10 blank | 0 comment | 3 complexity | ffb366d0fd309155da57982cd3f46dc6 MD5 | raw file
  1. load_common mymake
  2. load_common completion
  3. load_common prompt
  4. load_common hg
  5. base="$HOME/progs/perl/cpan/File/Find-Object"
  6. bench="$base/benchmark"
  7. berlios_base="$base/from-berlios"
  8. hg_base="$berlios_base"
  9. berlios_trunk="$berlios_base"
  10. trunk="$berlios_trunk"
  11. fl_trunk="$berlios_trunk/File-FindLines/module"
  12. module="$fl_trunk"
  13. remote_repo="$($__themes_dir/common/bitbucket-hg-remote-repo.pl --user="shlomif" --repo="perl-file-find-object-rule")"
  14. this="$module"
  15. cd "$this"
  16. t()
  17. {
  18. cd "$this" && ./Build runtest
  19. }
  20. e()
  21. {
  22. (cd "$this" && gvim -p $(ack -f lib/))
  23. }
  24. prompt()
  25. {
  26. __prompt_cmd \
  27. "\$fl_trunk=$fl_trunk" \
  28. "\$trunk=$trunk" \
  29. "\$base=$base" \
  30. "~=$HOME"
  31. }
  32. run_prof()
  33. {
  34. (cd "$bench" &&
  35. (
  36. rm -f nytprof.out
  37. perl -d:NYTProf -I "$trunk/lib" print-all.pl > /dev/null
  38. rm -fr nytprof
  39. nytprofhtml
  40. if test -z "$DONT_DEL" ; then
  41. rm -f nytprof.out
  42. fi
  43. )
  44. )
  45. }
  46. view_prof()
  47. {
  48. (cd "$bench" &&
  49. (firefox ./nytprof/index.html)
  50. )
  51. }
  52. PS1="\\u:\$(prompt)\\$ "