Last change
on this file since 656 was 620, checked in by Bruno Cornec, 16 years ago |
- change pb_distro_init interface and add a 6th parameter which is the update CLI to use for that distro.
|
File size:
762 bytes
|
Line | |
---|
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';
|
---|
11 | use Getopt::Long qw(:config auto_abbrev no_ignore_case);
|
---|
12 | use Data::Dumper;
|
---|
13 | use lib qw (lib);
|
---|
14 | use ProjectBuilder::Distribution;
|
---|
15 | use ProjectBuilder::Base;
|
---|
16 |
|
---|
17 | my %opts; # CLI Options
|
---|
18 |
|
---|
19 | GetOptions("verbose|v+" => \$opts{'v'});
|
---|
20 | if (defined $opts{'v'}) {
|
---|
21 | $pbdebug = $opts{'v'};
|
---|
22 | }
|
---|
23 | if (defined $opts{'l'}) {
|
---|
24 | open(pbLOG,"> $opts{'l'}") || die "Unable to log to $opts{'l'}: $!";
|
---|
25 | $pbLOG = \*pbLOG;
|
---|
26 | $pbdebug = 0 if ($pbdebug == -1);
|
---|
27 | }
|
---|
28 | pb_log_init($pbdebug, $pbLOG);
|
---|
29 |
|
---|
30 | my ($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd) = pb_distro_init();
|
---|
31 | print "distro tuple: ".join(',',($ddir, $dver, $dfam, $dtype, $pbsuf, $pbupd))."\n";
|
---|
Note:
See
TracBrowser
for help on using the repository browser.