class RBT::Libtool::RemoveLibtoolFiles
Constants
- NAMESPACE
#¶ ↑
NAMESPACE
¶ ↑#¶ ↑
Public Class Methods
from(this_directory)
click to toggle source
new( from_this_directory = return_pwd, run_already = true )
click to toggle source
Public Instance Methods
determine_which_libtool_files_are_to_be_purged()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
set_use_this_directory(i)
click to toggle source
#¶ ↑
set_use_this_directory
¶ ↑
This setter defines which directory we will be using.
#¶ ↑
# File lib/rbt/libtool/remove_libtool_files.rb, line 59 def set_use_this_directory(i) i = i.first if i.is_a? Array i = i.to_s.dup i = return_pwd if i.empty? # <- Use a sane default here. i << '/' unless i.end_with? '/' @use_this_directory = i end
try_to_purge_the_libtool_files()
click to toggle source
#¶ ↑
try_to_purge_the_libtool_files
¶ ↑
#¶ ↑
# File lib/rbt/libtool/remove_libtool_files.rb, line 84 def try_to_purge_the_libtool_files # ======================================================================= # # If we have found at the least one .la file, delete it/them. # ======================================================================= # all_libtool_files = @all_libtool_files unless all_libtool_files.empty? result = powderblue(all_libtool_files.size.to_s)+' .la file' result << 's' if all_libtool_files.size > 1 if all_libtool_files.size > 1 result << ' were' else result << ' was' end result << " found at `#{sdir(prefix_to_the_libtool_files?)}`." opnn; e result opnn; e "The configure flag #{royalblue('delete_libtool_files')}"\ " has been set to true, so" opnn; e 'these '+slateblue('.la files')+' will be removed next.' remove_these_files(all_libtool_files) end end