Last change
on this file since 3226 was 3226, checked in by Bruno Cornec, 10 years ago |
- Move elementary perl scripts from mindi to MondoRescue and adapt build Makefile
|
-
Property svn:executable
set to
*
|
File size:
1.4 KB
|
Line | |
---|
1 | #!/usr/bin/perl -w
|
---|
2 | #
|
---|
3 | # $Id$
|
---|
4 | # Copyright B. Cornec 2005-2014
|
---|
5 | # Provided under the GPL v2
|
---|
6 | #
|
---|
7 | # Get all links from a file
|
---|
8 | #
|
---|
9 | use strict;
|
---|
10 | use MondoRescue::File;
|
---|
11 |
|
---|
12 | =pod
|
---|
13 |
|
---|
14 | =head1 NAME
|
---|
15 |
|
---|
16 | mr-read-all-link keeps track of all the links of a file and display them
|
---|
17 |
|
---|
18 | =head1 DESCRIPTION
|
---|
19 |
|
---|
20 | mr-read-all-link keeps track of all the links of a file and display them, by analyzing the path under which the file is located and mentioning all links that are encountered so that all the required content for a chroot environment are given back correctly.
|
---|
21 |
|
---|
22 | =head1 SYNOPSIS
|
---|
23 |
|
---|
24 | mr-read-all-link /path/to/file ...
|
---|
25 |
|
---|
26 | =head1 ARGUMENTS
|
---|
27 |
|
---|
28 | =over 4
|
---|
29 |
|
---|
30 | =item B</path/to/file>
|
---|
31 |
|
---|
32 | This is the path of the binary file and for which we want its links to be included
|
---|
33 |
|
---|
34 | =back
|
---|
35 |
|
---|
36 | =head1 WEB SITES
|
---|
37 |
|
---|
38 | The main Web site of the project is available at L<http://www.mondorescue.org>. Bug reports should be filled using the trac instance of the project at L<http://trac.mondorescue.org/>.
|
---|
39 |
|
---|
40 | =head1 USER MAILING LIST
|
---|
41 |
|
---|
42 | For community exchanges around MondoRescue please use the list L<http://sourceforge.net/mailarchive/forum.php?forum_name=mondo-devel>
|
---|
43 |
|
---|
44 | =head1 AUTHORS
|
---|
45 |
|
---|
46 | The MondoRescue team lead by Bruno Cornec L<mailto:bruno@mondorescue.org>.
|
---|
47 |
|
---|
48 | =head1 COPYRIGHT
|
---|
49 |
|
---|
50 | MondoRescue is distributed under the GPL v2.0 license or later,
|
---|
51 | described in the file C<COPYING> included with the distribution.
|
---|
52 |
|
---|
53 | =cut
|
---|
54 |
|
---|
55 |
|
---|
56 | my $file = mr_file_read_all_link(@ARGV) if (defined $ARGV[0]);
|
---|
57 |
|
---|
58 | foreach my $f (sort keys %$file) {
|
---|
59 | print "$f: $file->{$f}\n";
|
---|
60 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.