scripts/make-libraries.rb
# creates a staging directory for the combined library.
#
# if a directory exists at the :directory option it is deleted.
#
# @return [String] path to the staging directory
# @param [Hash] opts directory option
creates a staging directory for the combined library.
if a directory exists at the :directory option it is deleted.
creates a staging directory for the combined library . if a directory exists at the : directory option it is deleted .
def make_combined_lib_staging_dir(opts = {})
  default_opts = {:directory => './build/Debug-combined'}
  merged = default_opts.merge(opts)
  path = merged[:directory]
  if File.exists?(path)
    FileUtils.rm_r(path)
  end
  FileUtils.mkdir(path)
  path
end
def make_combined_lib_staging_dir ( opts = { } ) default_opts = { :directory => './build/Debug-combined' } merged = default_opts . merge ( opts ) path = merged [ :directory ] if File . exists? ( path ) FileUtils . rm_r ( path ) end FileUtils . mkdir ( path ) path end
creates a staging directory for the combined library.
creates a staging directory for the combined library .
path to the staging directory
path to the staging directory
String
opts
opts directory option
opts directory option