cvs: php-gtk-doc /scripts genchapterents.php.in

[email protected] ("James Moore") Tue, 14 Aug 2001 21:31:01 -0000
Newsgroups php.gtk
Message-ID <cvsjmoore997824660@cvsserver>
jmoore		Tue Aug 14 17:31:01 2001 EDT

  Modified files:              
    /php-gtk-doc/scripts	genchapterents.php.in 
  Log:
  Fix for libxslt so it finds correct xml files.
  
  
Index: php-gtk-doc/scripts/genchapterents.php.in
diff -u php-gtk-doc/scripts/genchapterents.php.in:1.8 php-gtk-doc/scripts/genchapterents.php.in:1.9
--- php-gtk-doc/scripts/genchapterents.php.in:1.8	Sat Jun 30 16:00:06 2001
+++ php-gtk-doc/scripts/genchapterents.php.in	Tue Aug 14 17:31:00 2001
@@ -1,6 +1,6 @@
 <?php
 
-$lang = 'en';
+$lang = '@LANG@';
 $entities = array();
 
 if($argv[1])
@@ -8,10 +8,6 @@
 else
     $dir = "../$lang";
 
-// If you are on win32 with cygwin enter the path of your directory here
-// Ill fix the script asap :)
-//$dir = "e:/tools/cygwin/cvs/php-gtk-doc/en";
-
 function gen_dir_ents($path)
 {
     global $entities, $lang;
@@ -29,7 +25,7 @@
                 if(substr($file, -4) == ".xml")
                 {
                     $ent = preg_replace("%[\\/]%",".", preg_replace("%.*[\\/]$lang+[\\/]((userguide|reference)[\\/])?(.*)\.xml%",'\\3', $path."/".$file));
-                    $entities[] = "<!ENTITY $ent SYSTEM \"".preg_replace("%$lang+[\\/]((userguide|reference)[\\/])%",'\\1',preg_replace("%.*[\\/]($lang+[\\/])%","\\1","$path/$file"))."\">";                
+                    $entities[] = "<!ENTITY $ent SYSTEM \"".preg_replace("%($lang+[\\/](userguide|reference)[\\/])%",'\\1',preg_replace("%.*[\\/]($lang+[\\/])%","\\1","$path/$file"))."\">";                
                 }
             }
         }