CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <[EMAIL PROTECTED]> 05/03/29 20:49:57

Modified files:
        graphincludes/project: wesnoth.pm 

Log message:
        added support for next graph-include's --prefixstrip in the wesnoth 
project-class

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/graphincludes/project/wesnoth.pm.diff?tr1=1.1&tr2=1.2&r1=text&r2=text

Patches:
Index: wesnoth/graphincludes/project/wesnoth.pm
diff -u wesnoth/graphincludes/project/wesnoth.pm:1.1 
wesnoth/graphincludes/project/wesnoth.pm:1.2
--- wesnoth/graphincludes/project/wesnoth.pm:1.1        Mon Mar 28 19:54:06 2005
+++ wesnoth/graphincludes/project/wesnoth.pm    Tue Mar 29 20:49:57 2005
@@ -12,6 +12,8 @@
   my ($file,$level) = @_;
   $level = $main::minshow unless defined $level;
 
+  $file =~ s/^$self->{PFXSTRIP}// if defined $self->{PFXSTRIP};
+
   if ($level == 0) {
     return $file;
   } elsif ($level == 1) {


Reply via email to