[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [918] branches/1.2
- Subject: SF.net SVN: ledger-smb: [918] branches/1.2
- From: ..hidden..
- Date: Fri, 16 Mar 2007 16:52:05 -0700
Revision: 918
http://svn.sourceforge.net/ledger-smb/?rev=918&view=rev
Author: einhverfr
Date: 2007-03-16 16:52:04 -0700 (Fri, 16 Mar 2007)
Log Message:
-----------
upgrade.pl now called upgrade-templates.pl
Added Paths:
-----------
branches/1.2/upgrade-templates.pl
Removed Paths:
-------------
branches/1.2/upgrade.pl
Added: branches/1.2/upgrade-templates.pl
===================================================================
--- branches/1.2/upgrade-templates.pl (rev 0)
+++ branches/1.2/upgrade-templates.pl 2007-03-16 23:52:04 UTC (rev 918)
@@ -0,0 +1,22 @@
+#!/usr/bin/perl
+
+my $dirpath = $ARGV[1];
+$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`
+ }
+ }
+}
Deleted: branches/1.2/upgrade.pl
===================================================================
--- branches/1.2/upgrade.pl 2007-03-16 23:51:02 UTC (rev 917)
+++ branches/1.2/upgrade.pl 2007-03-16 23:52:04 UTC (rev 918)
@@ -1,22 +0,0 @@
-#!/usr/bin/perl
-
-my $dirpath = $ARGV[1];
-$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`
- }
- }
-}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.