get_config( key ) -> Stringconfig( key ) -> String
get a configuration. (e.g. config(prefix) for --prefix)
set_config( key, val )set a configuration key to val. (e.g. set_config("prefix", "/usr"))
curr_srcdir -> Stringthe current srcdir
curr_objdir -> Stringthe current objdir
srcdir_root -> Stringthe root directory of srcdir. When the hook script is called from setup.rb, this method returns the top directory of each package directory (ARCHIVE_TOP/packages/*/).
objdir_root -> Stringthe root directory of objdir. When the hook script is called from setup.rb, this method returns the top directory of each package directory (OBJDIR/packages/*/).
srcfile( fname ) -> Stringexpands relational path fname which is in the current srcdir, into the absolute path.
srcexist?( fname )true if a file fname exists in the current srcdir.
srcdirectory?( fname )true if a directory fname exists in the current srcdir.
srcfile?( fname )true if a normal file fname exists in the current srcdir.
srcentries( relpath = '.' ) -> Array of String
returns the list of file entiries in the directory
"current srcdir + / + relpath"
srcfiles( relpath = '.' ) -> Array of String
returns the list of file names in the directory
"current srcdir + / + relpath"
srcdirectories( relpath = '.' ) -> Array of String
returns the list of directory names in the directory
"current srcdir + / + relpath"