summaryrefslogtreecommitdiff
path: root/upgrade-templates.pl
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-12 20:46:20 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-04-12 20:46:20 +0000
commitdf073d6e09c0f87fb2e88cc215ace843a5851d4a (patch)
tree1c15ce909d3e0353b21bbd909e6720fd485a3a53 /upgrade-templates.pl
parent65458125b8f3814fd6ef4d07b55ab69f62f5a528 (diff)
Formatting with Perltidy
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1068 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'upgrade-templates.pl')
-rw-r--r--upgrade-templates.pl27
1 files changed, 14 insertions, 13 deletions
diff --git a/upgrade-templates.pl b/upgrade-templates.pl
index d6befb4f..807a7f9a 100644
--- a/upgrade-templates.pl
+++ b/upgrade-templates.pl
@@ -6,17 +6,18 @@ $dirpath ||= 'templates';
&process_dir($dirpath);
sub process_dir {
- my $dirpath = shift @_;
- opendir DIR, $dirpath || die "can't open dir $dirpath for reading:$!";
- my @entries = readdir DIR;
- closedir DIR;
- for $entry(@entries){
- my $path = "$dirpath/$entry";
- if (-d $path && $entry !~ /^\./){
- &process_dir($path);
- } elsif ($entry !~ /^\./){
- print "Processing path $path\n";
- `perl -ibak -pe 's|\<\%(.*)\%\>|<?lsmb \$1 ?>|g' $path`
- }
- }
+ my $dirpath = shift @_;
+ opendir DIR, $dirpath || die "can't open dir $dirpath for reading:$!";
+ my @entries = readdir DIR;
+ closedir DIR;
+ for $entry (@entries) {
+ my $path = "$dirpath/$entry";
+ if ( -d $path && $entry !~ /^\./ ) {
+ &process_dir($path);
+ }
+ elsif ( $entry !~ /^\./ ) {
+ print "Processing path $path\n";
+ `perl -ibak -pe 's|\<\%(.*)\%\>|<?lsmb \$1 ?>|g' $path`;
+ }
+ }
}