diff -urN setup-3.3.1/doc.en/metaconfapi.html setup-mod/doc.en/metaconfapi.html --- setup-3.3.1/doc.en/metaconfapi.html 2004-10-02 05:12:10.000000000 -0600 +++ setup-mod/doc.en/metaconfapi.html 2005-05-09 23:45:51.000000000 -0600 @@ -40,6 +40,17 @@ DESCRIPTION is the short description of this option which is used from --help global option.

+ + +
add_script_extension(ext)
+
+

+ext: String
+

+ +

+adds an extension to the list of files that will be installed in ruby_libdir +

set_config_default(confname, val)
diff -urN setup-3.3.1/doc.en/metaconfapi.html~ setup-mod/doc.en/metaconfapi.html~ --- setup-3.3.1/doc.en/metaconfapi.html~ 1969-12-31 17:00:00.000000000 -0700 +++ setup-mod/doc.en/metaconfapi.html~ 2005-05-09 23:45:49.000000000 -0600 @@ -0,0 +1,84 @@ + + + + + +metaconfig API + + + +

metaconfig API

+ +
+
add_path_config(confname, default, description)
+
+

+confname: String
+default: String
+description: String
+

+ +

+defines a path config option CONFNAME. +DEFAULT is the default value of this option. +DESCRIPTION is the short description of this option +which is used from --help global option. +

+ +
+
add_bool_config(confname, default, description)
+
+

+confname: String
+default: String
+description: String
+

+ +

+defines a bool config option CONFNAME. +DEFAULT is the default value of this option. +DESCRIPTION is the short description of this option +which is used from --help global option. +

+
+ +
add_script_extension(ext)
+
+

+ext: String
+

+ +

+adds an extension to the list of files that will be installed in ruby_libdir +

+ +
+
set_config_default(confname, val)
+
+

+confname: String
+val: String | bool
+

+ +

+set default value of config CONFNAME to VAL. +If CONFNAME is a bool config, VAL should be boolean. +Else VAL should be a String. +

+ +
+
remove_config(confname)
+
+

+confname: String
+

+

+removes config entry CONFNAME from the installer completely. +You must use this method at your own lisk. For example, +remove_config("prefix") causes fatal error. +

+
+
+ + + diff -urN setup-3.3.1/doc.ja/metaconfapi.html setup-mod/doc.ja/metaconfapi.html --- setup-3.3.1/doc.ja/metaconfapi.html 2004-10-02 05:12:10.000000000 -0600 +++ setup-mod/doc.ja/metaconfapi.html 2005-05-09 23:47:47.000000000 -0600 @@ -40,6 +40,17 @@ description はヘルプメッセージに表示するための 短い説明です。

+ + +
add_script_extension(ext)
+
+

+ext: String +

+ +

+See English docs. FIXME +

set_config_default(confname, val)
diff -urN setup-3.3.1/setup.rb setup-mod/setup.rb --- setup-3.3.1/setup.rb 2004-10-02 05:06:09.000000000 -0600 +++ setup-mod/setup.rb 2005-05-09 23:44:21.000000000 -0600 @@ -188,8 +188,11 @@ ALIASES.each do |ali, name| @table[ali] = @table[name] end + @script_extensions = ['rb'] end + attr_accessor :script_extensions + include Enumerable def each(&block) @@ -430,6 +433,9 @@ ConfigTable.remove(name) end + def add_script_extension(ext) + ConfigTable.script_extensions << ext + end end @@ -1195,7 +1201,7 @@ end def ruby_scripts - collect_filenames_auto().select {|n| /\.rb\z/ =~ n } + collect_filenames_auto().select {|n| /\.(#{ConfigTable.script_extensions.join('|')})\z/ =~ n } end # picked up many entries from cvs-1.11.1/src/ignore.c