Changeset 495 in ProjectBuilder for devel/pb-modules/bin/pbdistrocheck


Ignore:
Timestamp:
Jul 10, 2008, 11:36:18 AM (16 years ago)
Author:
Bruno Cornec
Message:
  • all global variables are prefixed with pb
  • First attempt at using locale and gettext
  • use of pb_display and pb_display_init added
  • Update presentation following RMLL 2008
File:
1 edited

Legend:

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

    r423 r495  
    1919GetOptions("verbose|v+" => \$opts{'v'});
    2020if (defined $opts{'v'}) {
    21     $debug = $opts{'v'};
     21    $pbdebug = $opts{'v'};
    2222}
    2323if (defined $opts{'l'}) {
    24     open(LOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!";
    25     $LOG = \*LOG;
    26     $debug = 0  if ($debug == -1);
     24    open(pbLOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!";
     25    $pbLOG = \*pbLOG;
     26    $pbdebug = 0  if ($pbdebug == -1);
    2727    }
    28 pb_log_init($debug, $LOG);
     28pb_log_init($pbdebug, $pbLOG);
    2929
    3030my ($ddir, $dver, $dfam, $dtype, $pbsuf) = pb_distro_init();
Note: See TracChangeset for help on using the changeset viewer.