mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-13 13:40:44 +00:00
reformat with perltidy standard
This commit is contained in:
parent
6073d3b139
commit
d20eb25772
@ -18,14 +18,14 @@ my $res = GetOptions(
|
|||||||
"output" => \$output
|
"output" => \$output
|
||||||
);
|
);
|
||||||
if ( !$res || $help ) {
|
if ( !$res || $help ) {
|
||||||
print "$0 [--base=/usr/share/zoneinfo] [--output=timezones.conf.xml] [--debug] [--help]\n";
|
print
|
||||||
|
"$0 [--base=/usr/share/zoneinfo] [--output=timezones.conf.xml] [--debug] [--help]\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
my @dirs = ($base);
|
my @dirs = ($base);
|
||||||
|
|
||||||
while ( @dirs )
|
while (@dirs) {
|
||||||
{
|
|
||||||
my $dir = shift @dirs;
|
my $dir = shift @dirs;
|
||||||
|
|
||||||
opendir( my $top, $dir );
|
opendir( my $top, $dir );
|
||||||
@ -69,7 +69,8 @@ foreach my $name ( sort( keys(%name_to_file) ) ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
open( my $out, ">$output" );
|
open( my $out, ">$output" );
|
||||||
print $out "<configuration name=\"timezones.conf\" description=\"Timezones\">\n";
|
print $out
|
||||||
|
"<configuration name=\"timezones.conf\" description=\"Timezones\">\n";
|
||||||
print $out " " x 4, "<timezones>\n";
|
print $out " " x 4, "<timezones>\n";
|
||||||
|
|
||||||
my $lastprefix = "";
|
my $lastprefix = "";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user