| 1 |
#! /usr/bin/perl |
| 2 |
# Here is a very simple sample driver for the DebParse modules. The |
| 3 |
# author's home directory is /home/t/. If you want to try this sample, |
| 4 |
# you'll have to adjust the directory names and filenames herein |
| 5 |
# accordingly. |
| 6 |
use warnings; |
| 7 |
use strict; |
| 8 |
use integer; |
| 9 |
BEGIN { unshift @INC, '/home/t/Debparse'; } |
| 10 |
use AllPkg; |
| 11 |
|
| 12 |
my $src_filename = '/home/t/archive/Sources.orig'; |
| 13 |
my $bin_filename = '/home/t/archive/Packages.orig'; |
| 14 |
|
| 15 |
# $AllPkg::verbosity = 60; |
| 16 |
|
| 17 |
my $all = AllPkg->new( $src_filename, $bin_filename ); |
| 18 |
$all->select_by_pri(); |
| 19 |
my @out = $all->analyze_and_report(); |
| 20 |
print @out; |
| 21 |
@out and exit 1; |
| 22 |
|