Add option --suffix
This commit is contained in:
parent
03ebbfe2ec
commit
81ddb6bcba
|
@ -1,6 +1,15 @@
|
||||||
#!@@@perl@@@ -w
|
#!@@@perl@@@
|
||||||
|
use warnings;
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
|
use Getopt::Long;
|
||||||
|
|
||||||
|
my $suffix = "";
|
||||||
|
|
||||||
|
GetOptions(
|
||||||
|
"suffix:s" => \$suffix,
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
my @pp;
|
my @pp;
|
||||||
for my $p (@ARGV) {
|
for my $p (@ARGV) {
|
||||||
|
@ -9,6 +18,7 @@ for my $p (@ARGV) {
|
||||||
for (my $i = 0; $i < scalar(@p); $i++) {
|
for (my $i = 0; $i < scalar(@p); $i++) {
|
||||||
my $pp = join("/", @p[0..$i]);
|
my $pp = join("/", @p[0..$i]);
|
||||||
$pp = "/" if $pp eq "";
|
$pp = "/" if $pp eq "";
|
||||||
|
$pp .= $suffix;
|
||||||
|
|
||||||
push (@pp, $pp);
|
push (@pp, $pp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue