[Po4a-commits] po4a/lib/Locale/Po4a TeX.pm,1.30,1.31

Nicolas FRAN??OIS po4a-devel@lists.alioth.debian.org
Sun, 20 Feb 2005 19:38:26 +0000


Update of /cvsroot/po4a/po4a/lib/Locale/Po4a
In directory haydn:/tmp/cvs-serv32231/lib/Locale/Po4a

Modified Files:
	TeX.pm 
Log Message:
Allow to exclude files from inclusion with an exclude_include command line option.


Index: TeX.pm
===================================================================
RCS file: /cvsroot/po4a/po4a/lib/Locale/Po4a/TeX.pm,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- TeX.pm	20 Feb 2005 19:35:51 -0000	1.30
+++ TeX.pm	20 Feb 2005 19:38:23 -0000	1.31
@@ -1238,6 +1238,7 @@
 
     $self->{options}{'translate'}='';
     $self->{options}{'untranslated'}='';
+    $self->{options}{'exclude_include'}='';
     $self->{options}{'debug'}='';
 
     foreach my $opt (keys %options) {
@@ -1252,6 +1253,12 @@
     if ($options{'debug'}) {
         foreach ($options{'debug'}) {
             $debug{$_} = 1;
+        }
+    }
+
+    if ($options{'exclude_include'}) {
+        foreach (split(/:/, $options{'exclude_include'})) {
+            push  @exclude_include, $_;
         }
     }