/shlomif-settings/Bash/Themes/themes/perl/module/format/source.bash
BASH | 96 lines | 79 code | 15 blank | 2 comment | 0 complexity | cca34d1d8a02373b07f044e9e76f2df2 MD5 | raw file
- load_common mymake
- load_common completion
- load_common prompt
- load_common hg
- cpan_base="$HOME/progs/perl/cpan"
- hg_base="$cpan_base"
- repos="$cpan_base/hg"
- trunk="$repos"
- base="$repos/Module-Format/Module-Format"
- this="$base"
- rw_repos_url="ssh://hg@bitbucket.org/shlomif/web-cpan"
- remote_repo="$rw_repos_url"
- # Make sure that gvim's filename completion ignores filenames that it should
- # not edit.
- __dist_name()
- {
- (cd "$this" &&
- cat META.yml | grep "^name:" | sed 's/^name: //'
- )
- }
- __version()
- {
- (cd "$this" &&
- cat META.yml | grep "^version:" | sed 's/^version: //'
- )
- }
- __test_distribution()
- {
- (
- cd "$this"
- ./Build disttest
- rm -fr "$(__dist_name)-$(__version)"
- )
- }
- __run_integration_tests()
- {
- (
- touch "$test_dir"/head.pl ;
- __display_integration_tests_results ;
- )
- }
- __display_integration_tests_results()
- {
- (
- cd "$test_dir" ;
- make ;
- )
- }
- __rerun_coverage()
- {
- (
- cd "$this"
- cover -delete
- HARNESS_PERL_SWITCHES=-MDevel::Cover make test
- cover
- )
- }
- __run_build_tests()
- {
- (
- cd "$trunk/tests/build/EU-MM/" ;
- ./test.sh ;
- )
- }
- t()
- {
- (cd "$this" ; ./Build runtest)
- }
- dt()
- {
- (cd "$this" ; ./Build distruntest)
- }
- cd $this
- prompt()
- {
- __prompt_cmd \
- "\$trunk=$trunk" \
- "\$cpan_base=$cpan_base" \
- "~=$HOME"
- }
- proj_name='Module-Format'