Module: RBT::Linux::LinuxFromScratch

Defined in:
lib/rbt/linux/linux_from_scratch/make_conditional_symlink_for_lfs_binutils.rb

Overview

RBT::Linux::LinuxFromScratch

Class Method Summary collapse

Class Method Details

#
#

20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/rbt/linux/linux_from_scratch/make_conditional_symlink_for_lfs_binutils.rb', line 20

def self.make_conditional_symlink_for_lfs_binutils(
    use_this_as_tools_lib_directory = '/tools/lib/'
  )
  if RBT.is_on_64_bit?
    unless File.directory? use_this_as_tools_lib_directory
      RBT.mkdir(use_this_as_tools_lib_directory)
    end
    _ = 'ln -sv lib /tools/lib64'
    e _
    system _
  else
    e 'Not a 64-bit computer - thus, no symlink will be created.'
  end
end