You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by yo...@apache.org on 2001/08/03 10:57:39 UTC
cvs commit: httpd-2.0/docs/manual expand.pl
yoshiki 01/08/03 01:57:39
Modified: docs/manual expand.pl
Log:
Expand .html.en, .html.fr and .html.ja.jis as well as
.html and .html.html.
Revision Changes Path
1.10 +1 -1 httpd-2.0/docs/manual/expand.pl
Index: expand.pl
===================================================================
RCS file: /home/cvs/httpd-2.0/docs/manual/expand.pl,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- expand.pl 2001/07/29 22:54:22 1.9
+++ expand.pl 2001/08/03 08:57:39 1.10
@@ -73,7 +73,7 @@
foreach $dir (@dirs) {
print "Entering directory $dir\n";
opendir SUBDIR, "$dir" or die "Could not open subdir $dir: $!";
- foreach $file (grep /\.html$/, readdir SUBDIR) {
+ foreach $file (grep /\.html(\.[^.]+)*$/, readdir SUBDIR) {
print "Expanding file $dir/$file\n";
rename "$dir/$file", "$dir/${file}.old";
open READ, "$dir/${file}.old" or die "Couldn't read $dir/$file: $!";