Created
April 19, 2009 15:01
-
-
Save masak/98094 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ git di | |
diff --git a/build/gen_setting_pm.pl b/build/gen_setting_pm.pl | |
index 7d97aea..7141e8a 100644 | |
--- a/build/gen_setting_pm.pl | |
+++ b/build/gen_setting_pm.pl | |
@@ -22,8 +22,10 @@ foreach my $file (@files) { | |
my @classes = ('Any'); | |
foreach my $file (@files) { | |
- next unless $file =~ /[\/\\](\w+)\.pm$/; | |
- push @classes, $1; | |
+ next unless $file =~ /setting((?:[\/\\]\w+)+)\.pm$/; | |
+ my $full_modname = substr($1, 1); | |
+ $full_modname =~ s/[\/\\]/::/g; | |
+ push @classes, $full_modname; | |
} | |
print <<"END_SETTING"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment