Last change
on this file since 618 was 495, checked in by Bruno Cornec, 16 years ago |
- 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 size:
746 bytes
|
Rev | Line | |
---|
[176] | 1 | #!/usr/bin/perl -w
|
---|
| 2 | #
|
---|
| 3 | # Project Builder Distribution Checker
|
---|
| 4 | #
|
---|
| 5 | # $Id$
|
---|
| 6 | #
|
---|
| 7 | # Copyright B. Cornec 2007
|
---|
| 8 | # Provided under the GPL v2
|
---|
| 9 |
|
---|
| 10 | use strict 'vars';
|
---|
[423] | 11 | use Getopt::Long qw(:config auto_abbrev no_ignore_case);
|
---|
[176] | 12 | use Data::Dumper;
|
---|
| 13 | use lib qw (lib);
|
---|
[423] | 14 | use ProjectBuilder::Distribution;
|
---|
| 15 | use ProjectBuilder::Base;
|
---|
[176] | 16 |
|
---|
[423] | 17 | my %opts; # CLI Options
|
---|
| 18 |
|
---|
| 19 | GetOptions("verbose|v+" => \$opts{'v'});
|
---|
| 20 | if (defined $opts{'v'}) {
|
---|
[495] | 21 | $pbdebug = $opts{'v'};
|
---|
[423] | 22 | }
|
---|
| 23 | if (defined $opts{'l'}) {
|
---|
[495] | 24 | open(pbLOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!";
|
---|
| 25 | $pbLOG = \*pbLOG;
|
---|
| 26 | $pbdebug = 0 if ($pbdebug == -1);
|
---|
[423] | 27 | }
|
---|
[495] | 28 | pb_log_init($pbdebug, $pbLOG);
|
---|
[423] | 29 |
|
---|
[176] | 30 | my ($ddir, $dver, $dfam, $dtype, $pbsuf) = pb_distro_init();
|
---|
| 31 | print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf))."\n";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.