Changeset 9831

Show
Ignore:
Timestamp:
04/19/08 03:39:08 (5 years ago)
Author:
hanekomu
Message:

r6217@91-113-92-200: marcel | 2008-04-18 20:27:23 +0200

  • .shipit: fixed svk.tagpattern
  • Dist::Joseki::Cmd::Command::tagcheck now looks for svk.tagpattern in
    .shipit as well
  • bin/ptags_sort sorts according to @INC order
  • Makefile.PL now also requires ShipIt?
  • added bin/ptags_sort

Location:
lang/perl/Dist-Joseki/trunk
Files:
1 added
6 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Dist-Joseki/trunk/.shipit

    r9773 r9831  
    11steps = ApplyYAMLChangeLogVersion, Manifest, DistTest, Commit, Tag, MakeDist, MyUploadCPAN, DistClean, Twitter 
    22 
    3 svk.tagpattern = //local/cpan/tags/Dist-Joseki-%v 
     3svk.tagpattern = //local/coderepos/lang/perl/Dist-Joseki/tags/Dist-Joseki-%v 
    44 
    55twitter.config = ~/.twitterrc 
  • lang/perl/Dist-Joseki/trunk/Changes

    r9773 r9831  
    1414      - "Dist::Joseki::DistType::*: replaced fixed calls to 'perl' with calls to the 'current executable'" 
    1515      - updated dotfiles 
    16     date: 2008-04-17T08:27:44Z 
     16      - '.shipit: fixed svk.tagpattern' 
     17      - Dist::Joseki::Cmd::Command::tagcheck now looks for svk.tagpattern in .shipit as well 
     18      - bin/ptags_sort sorts according to @INC order 
     19      - Makefile.PL now also requires ShipIt 
     20      - added bin/ptags_sort 
     21    date: 2008-04-18T18:27:22Z 
    1722    tags: [] 
    1823    version: 0.14 
  • lang/perl/Dist-Joseki/trunk/Makefile.PL

    r9773 r9831  
    2020requires 'Parse::CPAN::Packages'; 
    2121requires 'Perl::Version'; 
     22requires 'ShipIt'; 
    2223requires 'Test::TAP::HTMLMatrix'; 
    2324requires 'Text::Diff'; 
  • lang/perl/Dist-Joseki/trunk/bin/ptags

    r9773 r9831  
    3434# as well as installed system-wide; in this case you most likely want tags to 
    3535# point to the locally installed version. 
     36# 
     37# On the other hand, it might not matter anyway because if you sort the ptags 
     38# file, the order of equal tags will depend on the sort order of the path. But 
     39# see the ptags_sort program. 
    3640 
    3741our @lib = grep { !/^\.+$/ } reverse @INC; 
  • lang/perl/Dist-Joseki/trunk/lib/Dist/Joseki/Cmd/Command/tagcheck.pm

    r9773 r9831  
    44use warnings; 
    55use Dist::Joseki::SVK; 
     6use ShipIt::Conf; 
    67 
    78 
     
    2223            'tagbase|b=s', 
    2324            'depot path where tagged versions are', 
    24             { default => $cmd_config->{tagbase} }, 
     25            # no defaults here, they are more complicated. see get_tagbase() 
    2526        ], 
    2627 
     
    3031            { default => $cmd_config->{file} || 'Changes' }, 
    3132        ], 
     33 
     34        [ 
     35            'verbose|v', 
     36            'be verbose', 
     37            { default => 0 }, 
     38        ], 
    3239    ); 
    3340} 
    3441 
     42 
     43sub get_tagbase { 
     44    my $self = shift; 
     45 
     46    return $self->opt('tagbase') if defined $self->opt('tagbase'); 
     47 
     48    my $shipit_conf = ShipIt::Conf->parse('.shipit'); 
     49    my $tagbase = $shipit_conf->value('svk.tagpattern'); 
     50    if (defined $tagbase) { 
     51 
     52        # svk.tagpattern will be the complete pattern, but we need the tag 
     53        # base path. Usually it will be the last '/tags/' directory in the 
     54        # pattern, so let's try to be smart. 
     55 
     56        $tagbase =~ s!^(.*/tags)/.*$!$1!; 
     57        return $tagbase; 
     58    } 
     59 
     60    return $self->app->config->{tagcheck}; 
     61} 
    3562 
    3663sub run_single { 
     
    3966    $self->SUPER::run_single(@_); 
    4067 
     68    my $tagbase = $self->get_tagbase; 
     69    print "tagbase [$tagbase]\n" if $self->opt('verbose'); 
     70 
    4171    my $svk = Dist::Joseki::SVK->new( 
    42         tag_base         => $self->opt('tagbase'), 
     72        tag_base         => $tagbase, 
    4373        changes_filename => $self->opt('file'), 
    4474    ); 
  • lang/perl/Dist-Joseki/trunk/tools/dotfiles/.bashrc

    r9773 r9831  
    139139    fi 
    140140 
    141     sort -o $PTAGSFILE $PTAGSFILE 
     141    ptags_sort <$PTAGSFILE >$PTAGSFILE.sorted 
     142    mv $PTAGSFILE.sorted $PTAGSFILE 
    142143} 
    143144