8 |
my $path_add; # add additional info in path |
my $path_add; # add additional info in path |
9 |
my $verbose; |
my $verbose; |
10 |
my $exclude; |
my $exclude; |
11 |
|
my $skip_output; |
12 |
|
|
13 |
#$verbose = 1; |
#$verbose = 1; |
14 |
|
|
18 |
"verbose!" => \$verbose, |
"verbose!" => \$verbose, |
19 |
"debug!" => \$verbose, |
"debug!" => \$verbose, |
20 |
"exclude=s" => \$exclude, |
"exclude=s" => \$exclude, |
21 |
|
"skipoutput!" => \$skip_output, |
22 |
); |
); |
23 |
|
|
24 |
my $dir = shift @ARGV || die "usage: $0 [dir]"; |
my $dir = shift @ARGV || die "usage: $0 [dir]"; |
54 |
|
|
55 |
print STDERR " [$size]" if ($verbose); |
print STDERR " [$size]" if ($verbose); |
56 |
|
|
57 |
|
return if ($skip_output); |
58 |
|
|
59 |
# Output the document (to swish) |
# Output the document (to swish) |
60 |
print <<EOF; |
print <<EOF; |
61 |
Path-Name: $path |
Path-Name: $path |
124 |
open(F,"$path") || die "can't open file: $path"; |
open(F,"$path") || die "can't open file: $path"; |
125 |
print STDERR "$path" if ($verbose); |
print STDERR "$path" if ($verbose); |
126 |
while(<F>) { |
while(<F>) { |
127 |
$contents .= "$_"; |
$contents .= $_; |
128 |
} |
} |
129 |
$contents .= "\n\n"; |
$contents .= "\n\n"; |
130 |
|
|