Skip to content

Instantly share code, notes, and snippets.

@masak
Created April 19, 2009 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masak/98094 to your computer and use it in GitHub Desktop.
Save masak/98094 to your computer and use it in GitHub Desktop.
$ 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