/[corp_html]/back/phormation/php3tophp4
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /back/phormation/php3tophp4

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Fri Jan 26 17:53:58 2001 UTC (23 years, 3 months ago) by dpavlin
Branch: MAIN, dbp
CVS Tags: alpha, HEAD
Changes since 1.1: +0 -0 lines
alpha

1 dpavlin 1.1 #!/usr/bin/perl
2    
3     while( $ARGV[0] ne "" ) {
4     if( -f $ARGV[0] ) {
5     $tmpfile = $ARGV[0] . ".bak";
6     $ARGV[0] =~ /^(.*?).php3$/;
7     $outfile = $1 . ".php";
8     print "Converting $ARGV[0] -> $outfile\n";
9     system "mv -b $ARGV[0] $tmpfile";
10     open( INPUT, "< $tmpfile" ) or die("Couldn't open $tmpfile for reading\n");
11     open( OUTPUT, "> $outfile" ) or die("Couldn't open $tmpfile for writing\n");
12     while( <INPUT> ) {
13     s/\.php3/\.php/;
14     print OUTPUT $_;
15     }
16     system "rm $tmpfile";
17     }
18     shift;
19     }

  ViewVC Help
Powered by ViewVC 1.1.26