#!/usr/bin/perl -w # # $Id$ # Copyright B. Cornec 2005-2013 # Provided under the GPL v2 # # Get all links from a file # use strict; use MondoRescue::File; =pod =head1 NAME mr-read-all-link keeps track of all the links of a file and display them =head1 DESCRIPTION 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. =head1 SYNOPSIS mr-read-all-link /path/to/file ... =head1 ARGUMENTS =over 4 =item B This is the path of the binary file and for which we want its links to be included =back =head1 WEB SITES The main Web site of the project is available at L. Bug reports should be filled using the trac instance of the project at L. =head1 USER MAILING LIST For community exchanges around MondoRescue please use the list L =head1 AUTHORS The MondoRescue team lead by Bruno Cornec L. =head1 COPYRIGHT MondoRescue is distributed under the GPL v2.0 license or later, described in the file C included with the distribution. =cut my $file = mr_file_read_all_link(@ARGV) if (defined $ARGV[0]); foreach my $f (sort keys %$file) { print "$f: $file->{$f}\n"; }