Google

フックスクリプト API リファレンス

get_config( key ) -> String
config( 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 -> String

the current srcdir

curr_objdir -> String

the current objdir

srcdir_root -> String

the 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 -> String

the 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 ) -> String

expands 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"