PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/shlomif-settings/Bash/Themes/themes/nurikabe/shlomif/source.bash

https://bitbucket.org/shlomif/shlomif-computer-settings
BASH | 41 lines | 33 code | 8 blank | 0 comment | 1 complexity | 1b337fba18d33918ed8f70b4812cac23 MD5 | raw file
  1. load_common mymake
  2. load_common completion
  3. load_common prompt
  4. load_common hg
  5. base="$HOME/progs/games/nurikabe"
  6. hg_base="$base"
  7. trunk="$base/trunk"
  8. c_src="$trunk/nurikabe-solver"
  9. module="$c_src/Games-Nurikabe-Solver"
  10. remote_repo="$(_shlomif_bitbucket "nurikabe")"
  11. this="$module"
  12. cd "$this"
  13. setup()
  14. {
  15. (
  16. mkdir -p "$base"
  17. cd "$base"
  18. hg clone 'ssh://hg@bitbucket.org/shlomif/nurikabe' trunk
  19. )
  20. }
  21. t()
  22. {
  23. cd "$this" && ./Build runtest
  24. }
  25. prompt()
  26. {
  27. __prompt_cmd \
  28. "\$module=$module" \
  29. "\$trunk=$trunk" \
  30. "\$base=$base" \
  31. "~=$HOME"
  32. }
  33. proj_name='nurikabe'