diff options
author | Mystery Man <unknown@mandriva.org> | 2005-09-02 16:38:15 +0000 |
---|---|---|
committer | Mystery Man <unknown@mandriva.org> | 2005-09-02 16:38:15 +0000 |
commit | d53d83f3f80a9cad384644bb0d98b4d3d257b4d8 (patch) | |
tree | 575ef8f623300f7315ed26bec8c2ef670327366f /move/tools/busy-files-accesses | |
parent | 46a079ddbe5c93b62183e0a30aed11328eee5939 (diff) | |
download | drakx-backup-do-not-use-10_3_0_52mdk.tar drakx-backup-do-not-use-10_3_0_52mdk.tar.gz drakx-backup-do-not-use-10_3_0_52mdk.tar.bz2 drakx-backup-do-not-use-10_3_0_52mdk.tar.xz drakx-backup-do-not-use-10_3_0_52mdk.zip |
This commit was manufactured by cvs2svn to create tagV10_3_0_52mdk
'V10_3_0_52mdk'.
Diffstat (limited to 'move/tools/busy-files-accesses')
-rw-r--r-- | move/tools/busy-files-accesses | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/move/tools/busy-files-accesses b/move/tools/busy-files-accesses deleted file mode 100644 index 241b68405..000000000 --- a/move/tools/busy-files-accesses +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/perl - -use MDK::Common; -use Getopt::Long; - -GetOptions('no-link' => \ (my $no_link), - 'no-dir' => \ (my $no_dir), - 'full-dirs=s', \ (my $full_dirs), - 'already-have=s', \ (my $already_have), -); - -if ($full_dirs) { - my @l = map { chomp_(MDK::Common::File::cat_or_die($_)) } split(' ', $full_dirs); - $full_dirs = '/tmp/live_tree(' . join('|', map { quotemeta } @l) . ')/'; -} -if ($already_have) { - my @l = map { chomp_(MDK::Common::File::cat_or_die($_)) } split(' ', $already_have); - $already_have = '(' . join('|', map { quotemeta } @l) . ')'; -} - -my ($file_list) = @ARGV; -foreach my $file (cat_($file_list)) { - chomp $file; - - $file =~ m!/tmp/live_tree! or next; - $already_have && $file =~ /^$already_have$/ and next; - - if (-l $file ? !$no_link : -d $file ? !$no_dir : 1) { - my $s = $full_dirs && $file =~ /^$full_dirs/ ? "/tmp/live_tree$1" : $file; - push @l, $s; - } -} - -print "$_\n" foreach sort(uniq(@l)); |