Changeset 839


Ignore:
Timestamp:
08/20/09 15:23:23 (4 years ago)
Author:
bruno
Message:
  • Adds option support for pbdistrocheck (-v and -d)
  • Fix a bug on pbvi/pbg for function having binary in their name
Location:
devel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • devel/pb-modules/bin/pbdistrocheck

    r756 r839  
    1717my %opts;                   # CLI Options 
    1818 
    19 GetOptions("verbose|v+" => \$opts{'v'}); 
     19GetOptions( 
     20        "verbose|v+" => \$opts{'v'}, 
     21        "description|d" => \$opts{'d'} 
     22); 
    2023if (defined $opts{'v'}) { 
    2124    $pbdebug = $opts{'v'}; 
     
    2932 
    3033my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch) = pb_distro_init(); 
    31 print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch))."\n"; 
     34if (defined $opts{'d'}) { 
     35    print "\u$ddir $dver\n"; 
     36} else { 
     37    print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd, $arch))."\n"; 
     38} 
  • devel/pb/bin/pbg

    r292 r839  
    11#!/bin/bash 
    22export LANGUAGE=C 
    3 egrep -r $* . | egrep -v '\.svn|~:|binary|/CVS/|/tags/'  
     3egrep -r $* . | egrep -v '\.svn|~:|\tbinary\t|/CVS/|/tags/'  
  • devel/pb/bin/pbvi

    r230 r839  
    11#!/bin/bash 
    22export LANGUAGE=C 
    3 gvim `egrep -r $* . | egrep -vi '\.svn|~:|binary|/CVS/' | cut -d: -f1 | sort -u` 
     3gvim `egrep -r $* . | egrep -vi '\.svn|~:|\tbinary\t|/CVS/' | cut -d: -f1 | sort -u` 
Note: See TracChangeset for help on using the changeset viewer.