Mirror of the JODE repository
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/usr/bin/perl -w
|
|
|
|
my $num = 0;
|
|
for (@ARGV) {
|
|
next if $_ !~ /\.php$/;
|
|
$html = $php = $_;
|
|
$html =~ s/\.php$/.html/;
|
|
|
|
$ENV{extension}="html";
|
|
if (! -e "$html" || (-M "$php" <= -M "$html")) {
|
|
$num++;
|
|
system "php -f $php >$html";
|
|
}
|
|
}
|
|
print $num . " html files updated.\n";
|
|
|