Module: RBT

Defined in:
lib/rbt/time/time.rb,
lib/rbt/base/base.rb,
lib/rbt/make/make.rb,
lib/rbt/shell/help.rb,
lib/rbt/shell/menu.rb,
lib/rbt/cmake/cmake.rb,
lib/rbt/libtool/run.rb,
lib/rbt/shell/shell.rb,
lib/rbt/sinatra/app.rb,
lib/rbt/libtool/help.rb,
lib/rbt/libtool/reset.rb,
lib/rbt/actions/action.rb,
lib/rbt/actions/actions.rb,
lib/rbt/aliases/aliases.rb,
lib/rbt/colours/colours.rb,
lib/rbt/libtool/libtool.rb,
lib/rbt/project/project.rb,
lib/rbt/shell/constants.rb,
lib/rbt/version/version.rb,
lib/rbt/compile/constants.rb,
lib/rbt/cookbooks/url/url.rb,
lib/rbt/encoding/encoding.rb,
lib/rbt/errors/exceptions.rb,
lib/rbt/libtool/constants.rb,
lib/rbt/colours/use_colours.rb,
lib/rbt/constants/constants.rb,
lib/rbt/constants/namespace.rb,
lib/rbt/linux/fedora/fedora.rb,
lib/rbt/sinatra/action_view.rb,
lib/rbt/sql/compile_via_sql.rb,
lib/rbt/sql/create_database.rb,
lib/rbt/colours/html_colours.rb,
lib/rbt/misc/exclusive_logic.rb,
lib/rbt/toplevel_methods/ftp.rb,
lib/rbt/toplevel_methods/opn.rb,
lib/rbt/toplevel_methods/rds.rb,
lib/rbt/toplevel_methods/url.rb,
lib/rbt/constants/remote_URLs.rb,
lib/rbt/controller/controller.rb,
lib/rbt/misc/colourize_parser.rb,
lib/rbt/misc/configure_string.rb,
lib/rbt/registered/registered.rb,
lib/rbt/requires/require_yaml.rb,
lib/rbt/sinatra/action_create.rb,
lib/rbt/toplevel_methods/html.rb,
lib/rbt/url_action/url_action.rb,
lib/rbt/utility_scripts/gitty.rb,
lib/rbt/utility_scripts/scons.rb,
lib/rbt/utility_scripts/users.rb,
lib/rbt/check_for_updates/base.rb,
lib/rbt/cookbooks/find_headers.rb,
lib/rbt/sql/generate_sql_table.rb,
lib/rbt/toplevel_methods/debug.rb,
lib/rbt/toplevel_methods/games.rb,
lib/rbt/toplevel_methods/meson.rb,
lib/rbt/toplevel_methods/patch.rb,
lib/rbt/toplevel_methods/roebe.rb,
lib/rbt/commandline/commandline.rb,
lib/rbt/logging/create_log_file.rb,
lib/rbt/toplevel_methods/cliner.rb,
lib/rbt/toplevel_methods/editor.rb,
lib/rbt/toplevel_methods/md5sum.rb,
lib/rbt/utility_scripts/chainer.rb,
lib/rbt/make/colour_make_install.rb,
lib/rbt/requires/require_colours.rb,
lib/rbt/sinatra/toplevel_methods.rb,
lib/rbt/toplevel_methods/symlink.rb,
lib/rbt/toplevel_methods/to_bool.rb,
lib/rbt/compile_base/compile_base.rb,
lib/rbt/cookbooks/merge_cookbooks.rb,
lib/rbt/misc/reverse_dependencies.rb,
lib/rbt/toplevel_methods/download.rb,
lib/rbt/toplevel_methods/rubygems.rb,
lib/rbt/utility_scripts/toolchain.rb,
lib/rbt/utility_scripts/uninstall.rb,
lib/rbt/utility_scripts/use_flags.rb,
lib/rbt/errors/file_does_not_exist.rb,
lib/rbt/linux/gentoo/create_ebuild.rb,
lib/rbt/registered/registered_tags.rb,
lib/rbt/toplevel_methods/gobolinux.rb,
lib/rbt/configuration/configuration.rb,
lib/rbt/cookbooks/all_urls/all_urls.rb,
lib/rbt/cookbooks/feedback_licenses.rb,
lib/rbt/cookbooks/homepage/homepage.rb,
lib/rbt/cookbooks/show_last_updated.rb,
lib/rbt/utility_scripts/autosymlink.rb,
lib/rbt/utility_scripts/post_install.rb,
lib/rbt/check_for_updates/update_lxqt.rb,
lib/rbt/cookbooks/convert_date_format.rb,
lib/rbt/lean_prototype/lean_prototype.rb,
lib/rbt/linux/gobolinux/create_recipe.rb,
lib/rbt/registered/registered_headers.rb,
lib/rbt/requires/require_base_scripts.rb,
lib/rbt/toplevel_methods/all_binaries.rb,
lib/rbt/toplevel_methods/does_include.rb,
lib/rbt/toplevel_methods/dual_compile.rb,
lib/rbt/utility_scripts/chain_compile.rb,
lib/rbt/utility_scripts/change_prefix.rb,
lib/rbt/cookbooks/show_dependencies_on.rb,
lib/rbt/linux/kernel/rename_system_map.rb,
lib/rbt/registered/register_everything.rb,
lib/rbt/registered/registered_binaries.rb,
lib/rbt/registered/registered_m4_files.rb,
lib/rbt/toplevel_methods/all_libraries.rb,
lib/rbt/toplevel_methods/batch_compile.rb,
lib/rbt/toplevel_methods/e_and_esystem.rb,
lib/rbt/toplevel_methods/error_message.rb,
lib/rbt/toplevel_methods/pin_and_unpin.rb,
lib/rbt/toplevel_methods/verbose_truth.rb,
lib/rbt/utility_scripts/backup_program.rb,
lib/rbt/utility_scripts/build_detector.rb,
lib/rbt/utility_scripts/create_package.rb,
lib/rbt/utility_scripts/remove_program.rb,
lib/rbt/linux/slackware/filelist_parser.rb,
lib/rbt/linux/slackware/update_slackpkg.rb,
lib/rbt/registered/registered_gir_files.rb,
lib/rbt/registered/registered_libraries.rb,
lib/rbt/toplevel_methods/home_directory.rb,
lib/rbt/utility_scripts/beautify_system.rb,
lib/rbt/utility_scripts/install_graalvm.rb,
lib/rbt/utility_scripts/profile_install.rb,
lib/rbt/utility_scripts/remove_symlinks.rb,
lib/rbt/utility_scripts/symlink_headers.rb,
lib/rbt/compile_base/compile_base_module.rb,
lib/rbt/cookbooks/find_all_archive_types.rb,
lib/rbt/database_adapters/sequel/adapter.rb,
lib/rbt/generate_files/generate_makefile.rb,
lib/rbt/linux/debian/create_control_file.rb,
lib/rbt/linux/linux_from_scratch/lfs/lfs.rb,
lib/rbt/linux/linux_from_scratch/lfs/run.rb,
lib/rbt/requires/require_colours_and_opn.rb,
lib/rbt/requires/require_utility_scripts.rb,
lib/rbt/toplevel_methods/make_app_prefix.rb,
lib/rbt/toplevel_methods/module_programs.rb,
lib/rbt/utility_scripts/convert_pkgbuild.rb,
lib/rbt/utility_scripts/replace_symlinks.rb,
lib/rbt/utility_scripts/version_switcher.rb,
lib/rbt/constants/configuration_directory.rb,
lib/rbt/cookbooks/find_duplicate_binaries.rb,
lib/rbt/sinatra/action_available_programs.rb,
lib/rbt/sql/create_sql_from_this_cookbook.rb,
lib/rbt/toplevel_methods/toplevel_methods.rb,
lib/rbt/utility_scripts/config_log_parser.rb,
lib/rbt/utility_scripts/extra_information.rb,
lib/rbt/utility_scripts/missing_homepages.rb,
lib/rbt/actions/meta_actions/batch_compile.rb,
lib/rbt/generate_files/create_bash_scripts.rb,
lib/rbt/linux/debian/create_debian_package.rb,
lib/rbt/linux/linux_from_scratch/lfs/reset.rb,
lib/rbt/utility_scripts/fix_pkgconfig_file.rb,
lib/rbt/utility_scripts/installed_programs.rb,
lib/rbt/utility_scripts/reconstitute_glibc.rb,
lib/rbt/check_for_updates/update_kde_plasma.rb,
lib/rbt/colours/permanently_disable_colours.rb,
lib/rbt/errors/map_line_to_a_specific_error.rb,
lib/rbt/generate_files/generate_shellscript.rb,
lib/rbt/libtool/class_methods/class_methods.rb,
lib/rbt/libtool/search_in_these_directories.rb,
lib/rbt/toplevel_methods/available_programs.rb,
lib/rbt/toplevel_methods/convert_global_env.rb,
lib/rbt/toplevel_methods/no_trad_no_symlink.rb,
lib/rbt/utility_scripts/cleanup_system_tags.rb,
lib/rbt/utility_scripts/compile_base_system.rb,
lib/rbt/utility_scripts/copy_these_archives.rb,
lib/rbt/utility_scripts/fetch_all_m4_macros.rb,
lib/rbt/utility_scripts/flatpak_url_scanner.rb,
lib/rbt/utility_scripts/install_glib_schema.rb,
lib/rbt/utility_scripts/not_found_libraries.rb,
lib/rbt/utility_scripts/package_rbt_scripts.rb,
lib/rbt/utility_scripts/remove_all_symlinks.rb,
lib/rbt/utility_scripts/symlink_glib_schema.rb,
lib/rbt/generate_files/create_pkgconfig_file.rb,
lib/rbt/generate_files/create_snapcraft_file.rb,
lib/rbt/generate_files/generate_pdf_tutorial.rb,
lib/rbt/toplevel_methods/run_makepkg_command.rb,
lib/rbt/toplevel_methods/show_available_tags.rb,
lib/rbt/utility_scripts/apply_sed_operations.rb,
lib/rbt/utility_scripts/feedback_binaries_of.rb,
lib/rbt/utility_scripts/feedback_information.rb,
lib/rbt/utility_scripts/parse_configure_help.rb,
lib/rbt/utility_scripts/show_dependencies_of.rb,
lib/rbt/utility_scripts/symlink_all_programs.rb,
lib/rbt/cookbooks/toggle_keep_extracted_value.rb,
lib/rbt/package_managers/create_rpm_spec_file.rb,
lib/rbt/registered/registered_pkgconfig_files.rb,
lib/rbt/requires/require_the_toplevel_methods.rb,
lib/rbt/toplevel_methods/archive_related_code.rb,
lib/rbt/utility_scripts/compile_into_home_dir.rb,
lib/rbt/utility_scripts/report_the_kde_status.rb,
lib/rbt/utility_scripts/simplified_ldd_output.rb,
lib/rbt/utility_scripts/simplify_root_entries.rb,
lib/rbt/actions/individual_actions/ntrad/ntrad.rb,
lib/rbt/check_for_updates/update_kde_framework.rb,
lib/rbt/configuration/initialize_configuration.rb,
lib/rbt/linux/linux_from_scratch/lfs/constants.rb,
lib/rbt/toplevel_methods/remove_file_extension.rb,
lib/rbt/utility_scripts/convert_to_traditional.rb,
lib/rbt/utility_scripts/find_multiple_versions.rb,
lib/rbt/utility_scripts/query_file_association.rb,
lib/rbt/actions/meta_actions/linux_from_scratch.rb,
lib/rbt/generate_files/create_big_yaml_cookbook.rb,
lib/rbt/gui/universal_widgets/notebook/notebook.rb,
lib/rbt/problems_and_errors/problems_and_errors.rb,
lib/rbt/requires/require_the_validation_scripts.rb,
lib/rbt/toplevel_methods/compile_these_programs.rb,
lib/rbt/toplevel_methods/install_which_binaries.rb,
lib/rbt/utility_scripts/autoupdate_this_program.rb,
lib/rbt/utility_scripts/query_binary_to_package.rb,
lib/rbt/utility_scripts/query_header_to_package.rb,
lib/rbt/utility_scripts/simple_version_comparer.rb,
lib/rbt/utility_scripts/symlink_pkgconfig_files.rb,
lib/rbt/actions/individual_actions/prefix/prefix.rb,
lib/rbt/check_for_updates/check_for_blfs_updates.rb,
lib/rbt/generate_files/generate_shell_completion.rb,
lib/rbt/homebrew/registered_programs_of_homebrew.rb,
lib/rbt/libtool/class_methods/use_this_directory.rb,
lib/rbt/linux/gobolinux/create_dependencies_file.rb,
lib/rbt/linux/slackware/create_slackware_package.rb,
lib/rbt/linux/slackware/generate_slack_desc_file.rb,
lib/rbt/toplevel_methods/configure_appdir_prefix.rb,
lib/rbt/utility_scripts/remove_empty_directories.rb,
lib/rbt/check_for_updates/check_for_gnome_updates.rb,
lib/rbt/check_for_updates/update_kde_applications.rb,
lib/rbt/check_for_updates/update_kde_porting_aids.rb,
lib/rbt/configuration/simple_configuration_loader.rb,
lib/rbt/cookbooks/search_for_tags/search_for_tags.rb,
lib/rbt/generate_files/generate_rbt_configuration.rb,
lib/rbt/utility_scripts/update_entry/update_entry.rb,
lib/rbt/actions/individual_actions/extract/extract.rb,
lib/rbt/actions/individual_actions/headers/headers.rb,
lib/rbt/generate_files/create_global_yaml_database.rb,
lib/rbt/libtool/class_methods/return_every_la_file.rb,
lib/rbt/linux/gobolinux/gobolinux_recipes_comparer.rb,
lib/rbt/requires/require_the_registered_components.rb,
lib/rbt/toplevel_methods/install_libstdc_plus_plus.rb,
lib/rbt/utility_scripts/convert_to_non_traditional.rb,
lib/rbt/generate_files/generate_machomebrew_formula.rb,
lib/rbt/gui/universal_widgets/statistics/statistics.rb,
lib/rbt/gui/universal_widgets/url_action/url_action.rb,
lib/rbt/libtool/class_methods/autocorrect_this_file.rb,
lib/rbt/linux/gobolinux/gobolinux_naming_convention.rb,
lib/rbt/linux/linux_from_scratch/parse_blfs_webpage.rb,
lib/rbt/requires/require_the_generate_files_classes.rb,
lib/rbt/toplevel_methods/run_make_then_make_install.rb,
lib/rbt/toplevel_methods/show_last_configure_option.rb,
lib/rbt/checks_and_validations/validate_archive_size.rb,
lib/rbt/checks_and_validations/validate_blfs_entries.rb,
lib/rbt/colours/rev_simp_sdir_sfancy_sfile_and_swarn.rb,
lib/rbt/misc/create_and_populate_pkgconfig_directory.rb,
lib/rbt/toplevel_methods/check_for_binary_duplicates.rb,
lib/rbt/toplevel_methods/determine_host_architecture.rb,
lib/rbt/utility_scripts/check_for_available_versions.rb,
lib/rbt/utility_scripts/check_for_duplicate_binaries.rb,
lib/rbt/utility_scripts/system_compile_possibilities.rb,
lib/rbt/utility_scripts/what_could_become_an_app_dir.rb,
lib/rbt/check_for_updates/NEW_check_for_gnome_updates.rb,
lib/rbt/check_for_updates/check_for_slackware_updates.rb,
lib/rbt/configuration/configuration_instance_variable.rb,
lib/rbt/cookbooks/generate_homepage/generate_homepage.rb,
lib/rbt/generate_files/generate_flatpak_manifest_file.rb,
lib/rbt/requires/require_the_cookbook_utility_scripts.rb,
lib/rbt/toplevel_methods/feedback_program_description.rb,
lib/rbt/utility_scripts/compile_in_traditional_manner.rb,
lib/rbt/utility_scripts/purge_headers_of_this_program.rb,
lib/rbt/actions/individual_actions/configure/configure.rb,
lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb,
lib/rbt/actions/individual_actions/information/highest.rb,
lib/rbt/actions/meta_actions/beyond_linux_from_scratch.rb,
lib/rbt/constants/predefined_installation_instructions.rb,
lib/rbt/linux/slackware/install_this_slackware_package.rb,
lib/rbt/toplevel_methods/chroot_and_chown_related_code.rb,
lib/rbt/utility_scripts/beautify_configure_help_output.rb,
lib/rbt/utility_scripts/purge_binaries_of_this_program.rb,
lib/rbt/utility_scripts/report_the_registered_programs.rb,
lib/rbt/utility_scripts/symlink_into_usr_lib_directory.rb,
lib/rbt/actions/individual_actions/software_manager/run.rb,
lib/rbt/checks_and_validations/allowed_cookbook_entries.rb,
lib/rbt/cookbooks/check_for_existing_source_directories.rb,
lib/rbt/gui/universal_widgets/recipe_maker/recipe_maker.rb,
lib/rbt/toplevel_methods/return_version_of_this_program.rb,
lib/rbt/toplevel_methods/show_available_utility_scripts.rb,
lib/rbt/utility_scripts/purge_libraries_of_this_program.rb,
lib/rbt/utility_scripts/remove_programs/remove_programs.rb,
lib/rbt/actions/individual_actions/software_manager/menu.rb,
lib/rbt/actions/individual_actions/software_manager/misc.rb,
lib/rbt/actions/individual_actions/to_current/to_current.rb,
lib/rbt/check_for_updates/check_for_mate_desktop_updates.rb,
lib/rbt/checks_and_validations/validate_cookbook_aliases.rb,
lib/rbt/toplevel_methods/return_binaries_of_this_program.rb,
lib/rbt/actions/individual_actions/software_manager/reset.rb,
lib/rbt/compile_via_sql_database/compile_via_sql_database.rb,
lib/rbt/cookbooks/check_for_inclusion/check_for_inclusion.rb,
lib/rbt/cookbooks/multi_url_displayer/multi_url_displayer.rb,
lib/rbt/cookbooks/scan_source_archive/scan_source_archive.rb,
lib/rbt/libtool/remove_libtool_files/remove_libtool_files.rb,
lib/rbt/utility_scripts/show_dependencies_of_this_library.rb,
lib/rbt/actions/individual_actions/sed_wrapper/sed_wrapper.rb,
lib/rbt/checks_and_validations/check_validity_of_cookbooks.rb,
lib/rbt/checks_and_validations/report_useless_descriptions.rb,
lib/rbt/utility_scripts/check_for_invalid_current_symlinks.rb,
lib/rbt/utility_scripts/symlink_into_the_usr_bin_hierarchy.rb,
lib/rbt/actions/individual_actions/software_manager/actions.rb,
lib/rbt/actions/individual_actions/software_manager/setters.rb,
lib/rbt/check_for_updates/check_for_new_release_on_rubygems.rb,
lib/rbt/colours/determine_the_toplevel_use_colours_variable.rb,
lib/rbt/utility_scripts/increment_program_version/constants.rb,
lib/rbt/checks_and_validations/validate_all_cookbook_entries.rb,
lib/rbt/cookbooks/display_cookbook_dataset/feedback/feedback.rb,
lib/rbt/requires/require_the_classes_for_individual_programs.rb,
lib/rbt/toplevel_methods/check_this_cookbook_file_for_errors.rb,
lib/rbt/toplevel_methods/generate_programs_version_yaml_file.rb,
lib/rbt/utility_scripts/binary_name_belongs_to_which_program.rb,
lib/rbt/utility_scripts/save_the_available_programs_versions.rb,
lib/rbt/actions/individual_actions/information/show_all_about.rb,
lib/rbt/checks_and_validations/check_for_correct_dependencies.rb,
lib/rbt/checks_and_validations/report_missing_licence_entries.rb,
lib/rbt/gui/universal_widgets/compile_program/compile_program.rb,
lib/rbt/toplevel_methods/swift_return_version_of_this_program.rb,
lib/rbt/actions/individual_actions/software_manager/deprecated.rb,
lib/rbt/actions/individual_actions/software_manager/initialize.rb,
lib/rbt/checks_and_validations/report_missing_homepage_entries.rb,
lib/rbt/toplevel_methods/fast_return_file_size_of_this_program.rb,
lib/rbt/toplevel_methods/files_and_directories_related_methods.rb,
lib/rbt/utility_scripts/show_description_and_extra_information.rb,
lib/rbt/cookbooks/local_check_for_latest/local_check_for_latest.rb,
lib/rbt/actions/individual_actions/statistics/compile_strategies.rb,
lib/rbt/check_for_updates/report_these_programs_could_be_updated.rb,
lib/rbt/checks_and_validations/check_for_faulty_current_symlinks.rb,
lib/rbt/cookbooks/display_cookbook_dataset/feedback/feedback_url.rb,
lib/rbt/misc/classes_for_individual_programs/change_lib64_to_lib.rb,
lib/rbt/toplevel_methods/determine_appdir_prefix_from_this_input.rb,
lib/rbt/toplevel_methods/report_how_many_binaries_are_registered.rb,
lib/rbt/utility_scripts/compile_into_home_dir_without_symlinking.rb,
lib/rbt/actions/individual_actions/information/gather_information.rb,
lib/rbt/actions/individual_actions/statistics/show_all_statistics.rb,
lib/rbt/cookbooks/copy_the_ideal_cookbook/copy_the_ideal_cookbook.rb,
lib/rbt/utility_scripts/register_program_files_into_yaml_database.rb,
lib/rbt/actions/individual_actions/build_directory/build_directory.rb,
lib/rbt/actions/individual_actions/information/report_xfce_version.rb,
lib/rbt/checks_and_validations/batch_validate_the_cookbook_recipes.rb,
lib/rbt/checks_and_validations/missing_use_this_build_system_entry.rb,
lib/rbt/toplevel_methods/try_to_return_a_special_compile_component.rb,
lib/rbt/utility_scripts/compile_via_environment_variable_as_prefix.rb,
lib/rbt/checks_and_validations/scan_for_missing_last_update_entries.rb,
lib/rbt/cookbooks/display_cookbook_dataset/display_cookbook_dataset.rb,
lib/rbt/cookbooks/required_dependencies_on/required_dependencies_on.rb,
lib/rbt/gui/libui/compile_via_sql_database/compile_via_sql_database.rb,
lib/rbt/gui/universal_widgets/installed_programs/installed_programs.rb,
lib/rbt/shell/create_shell_script_containing_these_program_versions.rb,
lib/rbt/toplevel_methods/configure_has_a_higher_priority_than_meson.rb,
lib/rbt/toplevel_methods/return_location_to_this_programs_yaml_file.rb,
lib/rbt/utility_scripts/postinstallation_step/postinstallation_step.rb,
lib/rbt/utility_scripts/register_program_files_into_global_database.rb,
lib/rbt/actions/individual_actions/software_manager/software_manager.rb,
lib/rbt/utility_scripts/show_overview_over_available_utility_scripts.rb,
lib/rbt/cookbooks/create_cookbook_yaml_file/create_cookbook_yaml_file.rb,
lib/rbt/libtool/class_methods/return_all_la_files_from_this_directory.rb,
lib/rbt/toplevel_methods/compile_via_appdir_prefix_without_symlinking.rb,
lib/rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb,
lib/rbt/actions/individual_actions/information/feedback_description_of.rb,
lib/rbt/actions/individual_actions/show_manual_steps/show_manual_steps.rb,
lib/rbt/actions/individual_actions/software_manager/logic_related_code.rb,
lib/rbt/toplevel_methods/return_array_of_programs_without_a_blfs_entry.rb,
lib/rbt/toplevel_methods/return_string_containing_all_program_versions.rb,
lib/rbt/toplevel_methods/report_extended_information_about_this_program.rb,
lib/rbt/utility_scripts/kernel_config_sanitizer/kernel_config_sanitizer.rb,
lib/rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb,
lib/rbt/actions/individual_actions/infer_build_system/infer_build_system.rb,
lib/rbt/actions/individual_actions/show_compile_chain/show_compile_chain.rb,
lib/rbt/actions/individual_actions/software_manager/extract_related_code.rb,
lib/rbt/actions/individual_actions/statistics/display_barplot_statistics.rb,
lib/rbt/actions/individual_actions/software_manager/query_related_methods.rb,
lib/rbt/actions/individual_actions/information/report_mate_desktop_version.rb,
lib/rbt/actions/individual_actions/statistics/show_compile_time_statistics.rb,
lib/rbt/linux/linux_from_scratch/make_conditional_symlink_for_lfs_binutils.rb,
lib/rbt/toplevel_methods/try_to_find_shortcut_for_a_chain_compiled_program.rb,
lib/rbt/utility_scripts/symlink_all_upcased_programs_to_downcased_variants.rb,
lib/rbt/cookbooks/download_all_source_archives/download_all_source_archives.rb,
lib/rbt/cookbooks/improve_the_cookbook_recipes/improve_the_cookbook_recipes.rb,
lib/rbt/utility_scripts/compile_versioned_program/compile_versioned_program.rb,
lib/rbt/utility_scripts/increment_program_version/increment_program_version.rb,
lib/rbt/actions/individual_actions/statistics/return_compile_time_statistics.rb,
lib/rbt/actions/individual_actions/statistics/show_how_many_files_are_tracked.rb,
lib/rbt/actions/individual_actions/cookbooks/expand_cookbooks/expand_cookbooks.rb,
lib/rbt/actions/individual_actions/find_likely_directory/find_likely_directory.rb,
lib/rbt/actions/individual_actions/information/create_program_version_url_file.rb,
lib/rbt/actions/individual_actions/information/show_versions_of_these_programs.rb,
lib/rbt/actions/individual_actions/cookbooks/expanded_cookbook/expanded_cookbook.rb,
lib/rbt/actions/individual_actions/cookbooks/sanitize_cookbook/sanitize_cookbook.rb,
lib/rbt/actions/individual_actions/meson_appdir_configure/meson_appdir_configure.rb,
lib/rbt/actions/individual_actions/create_app_dir_skeleton/create_app_dir_skeleton.rb,
lib/rbt/actions/individual_actions/simple_appdir_configure/simple_appdir_configure.rb,
lib/rbt/utility_scripts/purge_incorrect_yaml_directories_in_the_programs_hierarchy.rb,
lib/rbt/actions/individual_actions/cookbooks/sanitize_cookbook/sanitize_related_code.rb,
lib/rbt/actions/individual_actions/find_alternative_archive/find_alternative_archive.rb,
lib/rbt/actions/individual_actions/remove_outdated_archives/remove_outdated_archives.rb,
lib/rbt/checks_and_validations/find_directory_entries_without_corresponding_yaml_file.rb,
lib/rbt/utility_scripts/classes_for_individual_programs/create_pkgconfig_file_for_lua.rb,
lib/rbt/actions/individual_actions/cookbooks/suggest_cookbook_for/suggest_cookbook_for.rb,
lib/rbt/utility_scripts/static_overview_of_the_available_binaries_on_this_computer_system.rb,
lib/rbt/actions/individual_actions/cookbooks/scan_for_blfs_programs/scan_for_blfs_programs.rb,
lib/rbt/libtool/class_methods/append_this_directory_to_the_list_of_directories_to_search_for.rb,
lib/rbt/actions/individual_actions/filter_for_valid_program_names/filter_for_valid_program_names.rb,
lib/rbt/actions/individual_actions/information/aggregate_information_from_the_expanded_cookbooks.rb,
lib/rbt/toplevel_methods/determine_appdir_prefix_from_this_input_by_guessing_the_program_version.rb,
lib/rbt/actions/individual_actions/cookbooks/show_configuration_options/show_configuration_options.rb,
lib/rbt/actions/individual_actions/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb,
lib/rbt/actions/individual_actions/map_this_input_to_that_registered_program/map_this_input_to_that_registered_program.rb

Overview

#

require ‘rbt/toplevel_methods/determine_appdir_prefix_from_this_input_by_guessing_the_program_version.rb’ RBT.determine_appdir_prefix_from_this_input

#

Defined Under Namespace

Modules: Actions, ClassesForIndividualPrograms, Compile, CompileBaseModule, Configuration, Cookbooks, DatabaseAdapters, Errors, GUI, Gobolinux, Linux, SaveFile Classes: Action, ApplySedOperations, Autosymlink, AutoupdateThisProgram, BackupProgram, Base, BeautifyConfigureHelpOutput, BeautifySystem, BinaryNameBelongsToWhichProgram, BuildDetector, ChainCompile, Chainer, ChangePrefix, CheckForDuplicateBinaries, CheckForInvalidCurrentSymlinks, CleanupSystemTags, Cmake, ColourMakeInstall, ColourizeParser, Commandline, CompileBase, CompileBaseSystem, CompileInTraditionalManner, CompileIntoHomeDir, CompileIntoHomeDirWithoutSymlinking, CompileVersionedProgram, CompileViaEnvironmentVariableAsPrefix, CompileViaSQL, CompileViaSQLDatabase, ConfigLogParser, ConfigureString, Controller, ConvertToNonTraditional, ConvertToTraditional, CopyTheseArchives, CreateAndPopulatePkgconfigDirectory, CreateBashScripts, CreateLogFile, CreatePackage, CreatePkgconfigFile, CreatePkgconfigFileForLua, CreateRpmSpecFile, CreateShellScriptContainingTheseProgramsVersions, CreateSnapcraftFile, ExclusiveLogic, ExtraInformation, FeedbackBinariesOf, FeedbackInformation, FetchAllM4Macros, FileDoesNotExist, FixPkgconfigFile, FlatpakUrlScanner, GenerateFlatpakManifestFile, GenerateMachomebrewFormula, GenerateMakefile, GeneratePdfTutorial, GenerateRbtConfiguration, GenerateShellCompletion, GenerateShellscript, GenerateSqlTable, Gitty, ImproveTheCookbookRecipes, InstallGlibSchema, InstallGraalvm, InstalledPrograms, Installer, KernelConfigSanitizer, LeanPrototype, Libtool, Make, MissingHomepages, NotAllowedDirectory, NotFoundLibraries, PackageRbtScripts, ParseConfigureHelp, PostInstall, PostinstallationStep, ProblemsAndErrors, ProfileInstall, PurgeBinariesOfThisProgram, PurgeHeadersOfThisProgram, PurgeIncorrectYamlDirectoriesInTheProgramsHierarchy, PurgeLibrariesOfThisProgram, QueryBinaryToPackage, QueryFileAssociation, QueryHeaderToPackage, ReconstituteGlibc, RegisterProgramFilesIntoGlobalDatabase, RegisterProgramFilesIntoYamlDatabase, RegisteredTags, RemoveAllSymlinks, RemoveEmptyDirectories, RemoveProgram, RemovePrograms, RemoveSymlinks, ReplaceSymlinks, RequiredDependenciesOn, ReverseDependencies, SaveTheAvailableProgramsVersions, Scons, ShowDependenciesOfThisLibrary, ShowDescriptionAndExtraInformation, SimpleVersionComparer, SimplifiedLddOutput, SimplifyRootEntries, Sinatra, StaticOverviewOfTheAvailableBinariesOnThisComputerSystem, SymlinkAllPrograms, SymlinkAllUpcasedProgramsToDowncasedVariants, SymlinkFromToCurrent, SymlinkGlibSchema, SymlinkHeaders, SymlinkIntoTheUsrBinHierarchy, SymlinkIntoUsrLibDirectory, SymlinkPkgconfigFiles, SystemCompilePossibilities, Toolchain, Uninstall, UpdateEntry, UpdateSlackpkg, UrlAction, UseFlags, Users, VersionSwitcher, WhatCouldBecomeAnAppDir

Constant Summary collapse

ColourMake =
#

RBT::ColourMake

#
Make
COOKBOOK_ALIASES =

This will be for most everyone else.

{}
PROJECT_BASE_DIRECTORY =
#

RBT::PROJECT_BASE_DIRECTORY

#
File.absolute_path("#{__dir__}/..")+'/'
VERSION =
#

VERSION

Which version does RBT have. Query via: RBT::VERSION. PROGRAM_VERSION is just an alias to it - stick to using VERSION instead “officially” whenever possible.

#
'0.16.13'
RBT_VERSION_NUMBER =

RBT_VERSION_NUMBER

VERSION
PROGRAM_VERSION =

PROGRAM_VERSION

VERSION
LAST_UPDATE =
#

LAST_UPDATE

This specifies when the RBT project was last updated. It should be updated whenever the VERSION constant changes.

#
'03.04.2024'
URL_TO_THE_DOCUMENTATION =
#

URL_TO_THE_DOCUMENTATION

#
"https://www.rubydoc.info/gems/rbt/#{VERSION}"
ENCODING_UTF =
#

RBT::ENCODING_UTF

#
'UTF-8'
ENCODING_ISO =
#

RBT::ENCODING_ISO

#
'ISO-8859-1'
ISO_ENCODING =
ENCODING_ISO
USE_THIS_ENCODING =
#

RBT::USE_THIS_ENCODING

Main pointer towards the main Encoding for the RBT project.

#
ENCODING_UTF
USE_MAIN_ENCODING =

USE_MAIN_ENCODING

USE_THIS_ENCODING
N =
#

N

#
"\n"
TABULATOR =
#

TABULATOR

#
"\t"
COMMAND_NOT_FOUND =
#

COMMAND_NOT_FOUND

#
'command not found'
HOME_FOR_X =
#

RBT::HOME_FOR_X

This constant is mostly used on my home setup, so it will be fairly useless for other people.

#
'/home/x/'
HOME_DIRECTORY_FOR_USER_X =

HOME_DIRECTORY_FOR_USER_X

HOME_FOR_X
DEPOT_DIR =
#

DEPOT_DIR

Hardcoded path to the depot-directory.

#
'/Depot/'
USR_INCLUDE_DIR =
#

USR_INCLUDE_DIR

This can be standalone because it will be ALWAYS absolute, pointing towards “/usr/include/”.

#
'/usr/include/'
FILE_SETUP_PY =
#

FILE_SETUP_PY

This constant can be useful if you have to install a program that depends on the file ‘setup.py’.

#
'setup.py'
FILE_SCONS =
#

FILE_SCONS

#
'SConstruct'
FILE_WAF =
#

FILE_WAF

#
'waf'
FILE_CMAKE_LISTS =
#

FILE_CMAKE_LISTS

#
'CMakeLists.txt'
FILE_MESON_BUILD =
#

FILE_MESON_BUILD

#
'meson.build'
TAR_XZ =
#

TAR_XZ

Several archive types are kept here.

#
'.tar.xz'
TARXZ =

TARXZ

TAR_XZ
TAR_BZ2 =
#

TAR_BZ2

#
'.tar.bz2'
TARBZ2 =

TARBZ2

TAR_BZ2
TAR_GZ =
#

TAR_GZ

#
'.tar.gz'
TARGZ =

TARGZ

TAR_GZ
ZIP =
#

ZIP

#
'.zip'
GEM =
#

GEM

#
'.gem'
LZ =
#

LZ

#
'.lz'
DEFAULT_ARCHIVE_TYPE =
#

DEFAULT_ARCHIVE_TYPE

This constant may be required so that other classes know which is the default archive. This can then be used to, for example, repackage archives into this format.

#
TAR_XZ
ARRAY_REGISTERED_ARCHIVES =
#

ARRAY_REGISTERED_ARCHIVES

Keep these archive formats registered in this Array.

#
[
  TAR_XZ,
  TAR_BZ2,
  TAR_GZ,
  ZIP,
  GEM,
  LZ
]
RUBY_SRC_DIR =
#

RUBY_SRC_DIR

This deliberately hard-coded constant is for my home system - it helps speed up the development process if I can use such constants as shortcuts.

#
"#{HOME_FOR_X}programming/ruby/src/"
RUBY_SRC_DIR_AT_HOME =

RUBY_SRC_DIR_AT_HOME

RUBY_SRC_DIR
RUBY_SRC_DIRECTORY =

RUBY_SRC_DIRECTORY

RUBY_SRC_DIR
RUBY_SRC =

RUBY_SRC

RUBY_SRC_DIR
FILE_USE_FLAGS =
#

FILE_USE_FLAGS

#
"#{project_yaml_directory}use_flags/use_flags.yml"
FILE_COOKBOOK_CHAINED_PROGRAMS =
#

FILE_COOKBOOK_CHAINED_PROGRAMS

Easier constant to keep track of the chained cookbook-programs. In this context, a chain means a successive run of programs that are to be compiled.

This will then yield to a path such as the following:

/usr/lib/ruby/site_ruby/3.0.0/rbt/yaml/chained_programs/chained_programs.yml
#
"#{project_yaml_directory}chained_programs/chained_programs.yml"
FILE_COOKBOOK_ALIASES =
#

FILE_COOKBOOK_ALIASES

#
"#{project_yaml_directory}cookbook_aliases/cookbook_aliases.yml"
FILE_WINDOWS_COOKBOOK =
#

FILE_WINDOWS_COOKBOOK

#
"#{project_yaml_directory}windows_cookbook.yml"
FILE_COMPILE_HOOKS =
#

FILE_COMPILE_HOOKS

#
"#{project_yaml_directory}compile_hooks.yml"
FILE_TIME_COMPILATION =
#

FILE_TIME_COMPILATION

#
"#{project_yaml_directory}configuration/time_compilation.yml"
FILE_PROGRAMS_DIRECTORY =
#

FILE_PROGRAMS_DIRECTORY

#
"#{project_yaml_directory}configuration/programs_directory.yml"
FILE_TRY_TO_USE_THE_FILE_WINDOWS_COOKBOOK =
#

FILE_TRY_TO_USE_THE_FILE_WINDOWS_COOKBOOK

#
"#{project_yaml_directory}configuration/try_to_use_the_file_windows_cookbook.yml"
FILE_USE_MD5SUM =
#

FILE_USE_MD5SUM

#
"#{project_yaml_directory}configuration/use_md5sum.yml"
FILE_USE_PORG =
#

FILE_USE_PORG

#
"#{project_yaml_directory}configuration/use_porg.yml"
FILE_SHORT_TUTORIAL =
#

FILE_SHORT_TUTORIAL

#
"#{RBT.project_base_dir?}tutorial/short_tutorial.md"
RUBY_SRC_DIR_RBT =
#

RUBY_SRC_DIR_RBT

This constant is only useful on my home system.

It corresponds to:

/home/x/programming/ruby/src/rbt/lib/rbt/
#
"#{RUBY_SRC_DIR}rbt/lib/rbt/"
ROEBE_PATH_TO_COOKBOOKS =

ROEBE_PATH_TO_COOKBOOKS

RUBY_SRC_DIR_RBT
RUBY_SRC_DIR_RBT_YAML =
#

RUBY_SRC_DIR_RBT_YAML

This constant may correspond to the String “/home/x/programming/ruby/src/rbt/lib/rbt/yaml/”.

#
"#{RUBY_SRC_DIR_RBT}yaml/"
RUBY_SRC_DIR_RBT_YAML_AT_HOME =
#

RUBY_SRC_DIR_RBT_YAML_AT_HOME

#
RUBY_SRC_DIR_RBT_YAML
RUBY_SRC_RBT_COOKBOOKS =
#

RUBY_SRC_RBT_COOKBOOKS

This constant refers to the following path on my home system:

/home/x/programming/ruby/src/rbt/lib/rbt/yaml/cookbooks/
#
"#{RUBY_SRC_DIR_RBT_YAML}cookbooks/"
GOBOLINUX_LAYOUT =
#

GOBOLINUX_LAYOUT

This constant is probably only needed for gobolinux systems.

#
"#{ENV['GOBOLINUX_LAYOUT']}"
REGISTER_COMPILED_PROGRAM =
#

REGISTER_COMPILED_PROGRAM

Whether we should register compiled programs or not.

#
true
COMPILE_EVERYTHING_INTO_STANDALONE_DIRECTORY =
#

COMPILE_EVERYTHING_INTO_STANDALONE_DIRECTORY

Whether to compile everything into a standalone directory or not.

#
false
SHELL_ERROR_CODE =
#

SHELL_ERROR_CODE

Shell Error code - to append. Since as of September 2022 this won’t include any ‘ ’ character. Before that it did.

#
'2>&1'
ERROR_LINE =
SHELL_ERROR_CODE
DEFAULT_PROGRAM_ENTRY =
#

DEFAULT_PROGRAM_ENTRY

#
'htop'
DEFAULT_ENTRY =

an “alias” to the above ^^^

DEFAULT_PROGRAM_ENTRY
FILE_CPUINFO =
#

FILE_CPUINFO

#
'/proc/cpuinfo'
HOST_CPU =
#

HOST_CPU

The host CPU that the scripts are running on.

#
TARGET_CPU =
#

TARGET_CPU

The target CPU that we are running on.

#
MAKE_COMMAND_TO_USE =
#

MAKE_COMMAND_TO_USE

Which make command to use by default.

#
'make'
CHECK_FOR_BINARY_NAMES =
#

CHECK_FOR_BINARY_NAMES

#
true
CHECK_FOR_LIBRARY_NAMES =
#

CHECK_FOR_LIBRARY_NAMES

#
true
FILE_BUILD_NINJA =
#

FILE_BUILD_NINJA

#
'build.ninja'
SHOW_EXTRA_INFORMATION =
#

SHOW_EXTRA_INFORMATION

#
true
LINUX =
#

LINUX

#
"#{ENV['LINUX']}"
DIRECTORY_INDIVIDUAL_COOKBOOKS_AT_ROEBE_HOME =
#

DIRECTORY_INDIVIDUAL_COOKBOOKS_AT_ROEBE_HOME

This constant is used mostly on my home system.

#
"#{RUBY_SRC_DIR_RBT_YAML}cookbooks/"
COOKBOOKS_BASE_DIRECTORY =
#

COOKBOOKS_BASE_DIRECTORY

The following constant is actually only useful for my home system, and only if I don’t use any other setting. So this is mostly just here for legacy reasons.

#
"#{HOME_DIRECTORY_FOR_USER_X}programming/ruby/src/"\
"rbt/lib/rbt/yaml/cookbooks/"
RBT_HOMEPAGE_URL =
#

RBT_HOMEPAGE_URL

The RBT Homepage is defined here.

#
'https://rubygems.org/gems/rbt'
DEFAULT_COLOUR_TO_USE =
#

DEFAULT_COLOUR_TO_USE

Specify what is our main colour to use for the Cookbooks project.

#
"\e[0;32m"
ARRAY_HELP_OPTIONS =
#

RBT::ARRAY_HELP_OPTIONS (help tag)

All the help options are stored here. These are the ones that work on e. g. “rbt –help”.

#
%w(
  HELP -h --help --help? help hel he h
  display_standard_help_options
)+['Display help']
HASH_ENGLISH_NUMBERS =
#

HASH_ENGLISH_NUMBERS

#
{
  'one'   => 1,
  'two'   => 2,
  'three' => 3,
  'four'  => 4,
  'five'  => 5,
  'six'   => 6,
  'seven' => 7,
  'eight' => 8,
  'nine'  => 9
}
ARRAY_HELP_VERSION_OPTIONS =
#

ARRAY_HELP_VERSION_OPTIONS

#
%w(
  --version?
  --version
  version?
  VERSION
  version
)
ARRAY_SPECIAL_COMPONENT_CONTAINING_MANY_SUBCOMPONENTS =
#

ARRAY_SPECIAL_COMPONENT_CONTAINING_MANY_SUBCOMPONENTS

Here we add constants that can be used like in this way:

ry --plasma1
ry --gnome3
#
%w(
  kde
  kde_apps
  mate
  game
  xfce
  xorg
  gnome
  plasma
  lxqt
  portingaids
)
KDE_REGEX_FOR_REMOTE_ARCHIVES =
#

KDE_REGEX_FOR_REMOTE_ARCHIVES

This is the regex that can be used in order to obtain the proper remote URL to the individual KDE packages.

As an example, have a look here:

https://rubular.com/r/3ZX5Rz8soGqjsw
#
/<tr><td valign="top"><a href="(.+.tar.xz)"><img/
REGEXES_TO_SHOW_THE_SOURCE_DIRECTORY =
#

REGEXES_TO_SHOW_THE_SOURCE_DIRECTORY

These regexes can be used to show/check for the source directory.

#
[
  /^-?-?source(-|_| )?dir\??$/,
  /^-?-?source(-|_| )?archive\??$/,
  /^-?-?src(-|_| )?dir\??$/
]
REGEX_TO_SANITIZE_LIBRARIES =
#

REGEX_TO_SANITIZE_LIBRARIES

Use this regex if you wish to sanitize some libraries.

#
/(.+)\.{(\w+),(\w+)}?/
REGEX_TO_USE_FOR_FOR_GITHUB =
#

REGEX_TO_USE_FOR_FOR_GITHUB

This constant is used to grab archives from github.

These archives have a form like:

https://github.com/ninja-build/ninja/archive/v1.7.1.tar.gz

The following example on rubular shows how to use this:

https://rubular.com/r/f78srzR8v8E0As

The match that will be returned is then a String such as:

1.7.1.tar.gz
#
/^http.+\/archive\/v(.+)$/
REGISTERED_COOKBOOK_ENTRIES =
[]
FILE_CCACHE =
#

FILE_CCACHE

#
"#{project_yaml_directory}configuration/use_ccache.yml"
FILE_GLOBAL_FLAGS =
#

FILE_GLOBAL_FLAGS

#
"#{project_yaml_directory}global_flags.yml"
ROEBE_FILE_GLOBAL_FLAGS =
#

ROEBE_FILE_GLOBAL_FLAGS

This constant here is only for my home system, hence the prefix ROEBE in it.

#
"#{RUBY_SRC_DIR_RBT_YAML}"\
"#{File.basename(FILE_GLOBAL_FLAGS)}"
SPECIFICATION_OF_REGISTERED_COOKBOOK_ENTRIES =
nil
DIRECTORY_RBT_PROFILES =
#

DIRECTORY_RBT_PROFILES

This may be a path such as:

/home/Programs/Ruby/2.6.5/lib/ruby/site_ruby/2.6.0/rbt/misc/profiles/
#
"#{RBT.project_base_directory?}misc/profiles/"
DIRECTORY_TO_THE_PROFILES =

DIRECTORY_TO_THE_PROFILES

DIRECTORY_RBT_PROFILES
FILE_REGISTERED_HEADERS =
#

FILE_REGISTERED_HEADERS

Prefer to use the method RBT.file_registered_headers instead - this constant is mildly deprecated (but still available if you really need it).

#
"#{project_yaml_directory}registered/headers.yml"
CHAINED_PROGRAMS =

Use an empty hash in this case.

{}
NAMESPACE =
#

NAMESPACE

Which namespace we shall use for the RBT project may be defined here.

This is a Hash “constant”, so that we can more easily re-define it, if we have to.

#
{
  namespace: 'RBT'
}
GNOME_FTP_URL =
#

GNOME_FTP_URL

#
'https://download.gnome.org/sources/?C=M&O=D'
DOWNLOAD_KDE_ORG =
#

RBT::DOWNLOAD_KDE_ORG

#
'https://download.kde.org/'
REMOTE_URL_FOR_KDE_APPLICATIONS =
#

RBT::REMOTE_URL_FOR_KDE_APPLICATIONS

The KDE applications include software such as “dolphin”. They are now called “KDE Gear” rather than “KDE Applications”.

The URL may look like this:

https://download.kde.org/stable/release-service/?C=M;O=D

To batch-update these applications, do:

update_kde_applications
updatekdeapplications
#
"#{DOWNLOAD_KDE_ORG}stable/release-service/24.02.0/src/"
REMOTE_URL_FOR_KDE_FRAMEWORKS =
#

REMOTE_URL_FOR_KDE_FRAMEWORKS

This URL should point to the latest KDE-frameworks release.

Presently, (08 September 2018) the latest KDE-frameworks release is 5.50.0 (the URL, oddly enough, does not include the trailing “0”). Subsequent releases neither have had a trailing “0”.

To batch-update from the commandline, try this:

update_kde_frameworks
updatekdeframeworks
#

download.kde.org/stable/frameworks/5.115/

#
"#{DOWNLOAD_KDE_ORG}stable/frameworks/5.115/"
REMOTE_URL_FOR_KDE_PORTING_AIDS =
#

REMOTE_URL_FOR_KDE_PORTING_AIDS

This constant must come after the constant REMOTE_URL_FOR_KDE_FRAMEWORKS has been defined.

To update these, try:

rbt --update_porting_aids
update_porting_aids
#

download.kde.org/stable/frameworks/5.115/portingAids/

#
"#{REMOTE_URL_FOR_KDE_FRAMEWORKS}portingAids/"
REMOTE_URL_FOR_KDE_PLASMA =
#

REMOTE_URL_FOR_KDE_PLASMA (plasma tag)

Always point to the latest KDE-Plasma (upstream) URL here with this constant, such as www.kde.org/info/plasma-5.14.3.php.

To invoke updating all KDE-plasma components from the commandline, you may issue the following command:

update_kde_plasma
updatekdeplasma
#
"#{DOWNLOAD_KDE_ORG}stable/plasma/6.0.2/"
REMOTE_DOWNLOAD_URL_FOR_KDE_PLASMA =
#

REMOTE_DOWNLOAD_URL_FOR_KDE_PLASMA

#
"#{DOWNLOAD_KDE_ORG}stable/plasma/"
REMOTE_PUB_MATE_DESKTOP_RELEASES =
#

REMOTE_PUB_MATE_DESKTOP_RELEASES

#
'https://pub.mate-desktop.org/releases/'
REMOTE_PUB_MATE_DESKTOP_RELEASES_LATEST_VERSION =
#

REMOTE_PUB_MATE_DESKTOP_RELEASES_LATEST_VERSION (mate tag)

This should be used as the base for the download-functionality in the file check_for_mate_desktop_updates.rb

This would correspond to an URL like:

https://pub.mate-desktop.org/releases/1.24/
https://pub.mate-desktop.org/releases/1.26/
https://pub.mate-desktop.org/releases/
#
"#{REMOTE_PUB_MATE_DESKTOP_RELEASES}1.26/"
REMOTE_DOWNLOAD_BASE_URL_FOR_LXQT =
#

REMOTE_DOWNLOAD_BASE_URL_FOR_LXQT

#
'https://downloads.lxqt.org/'
CURRENT_VERSION_OF_LXQT =
#

CURRENT_VERSION_OF_LXQT

Use this constant to keep track as to which lxqt version is the one that is currently tracked by RBT. It has to be manually updated (for now).

#
'0.14.1'
REMOTE_DOWNLOAD_URL_FOR_LXQT =
#

REMOTE_DOWNLOAD_URL_FOR_LXQT

The following constant should have an URL such as:

https://downloads.lxqt.org/0.14.1.html
#
"#{REMOTE_DOWNLOAD_BASE_URL_FOR_LXQT}#{CURRENT_VERSION_OF_LXQT}.html"
REMOTE_SLACKWARE_HOMEPAGE =
#

REMOTE_SLACKWARE_HOMEPAGE

#
'https://www.slackware.com/changelog/current.php?cpu=x86_64'
BASE_URL_TO_GNOME_SOURCES =
#

BASE_URL_TO_GNOME_SOURCES

#
'https://ftp.gnome.org/pub/GNOME/sources/'
BLFS_CHANGELOG_WEBPAGE =
#

BLFS_CHANGELOG_WEBPAGE

#
'https://www.linuxfromscratch.org/blfs/view/svn/introduction/changelog.html'
REMOTE_URL_TO_THE_MATE_DESKTOP_COMPONENTS =
#

REMOTE_URL_TO_THE_MATE_DESKTOP_COMPONENTS

This constant specifies where we can find the (remote) source code to the mate-desktop, via HTTP-file listing.

#
"#{REMOTE_PUB_MATE_DESKTOP_RELEASES_LATEST_VERSION}?C=M&O=D"
URL_TO_REMOTE_CHANGELOG =
#

URL_TO_REMOTE_CHANGELOG

Where to keep the remote changelog, if we make use of one that is.

This is no longer in use as of February 2024 - but, for the time being, we will retain it.

#
'https://shevy.bplaced.net/rbt_changelog.html'
SHALL_WE_DEBUG =

default fallback.

DEBUG = false
YAML_FILE_REGISTERED_TAGS =

Otherwise, initialize as empty hash.

{}
ALL_TAGS =

ALL_TAGS

YAML_FILE_REGISTERED_TAGS
USE_FLAGS =
nil
USE_TAGS =
#

USE_TAGS

Whether to use (and thus symlink) tags. Can be changed via the yaml configuration file.

#
@configuration.use_tags
USE_ABSOLUTE_SYMLINKING =
#

RBT::USE_ABSOLUTE_SYMLINKING

#
@configuration.use_absolute_symlinking
REPORT_SPECIFIC_PROGRAM_NAME =
#

REPORT_SPECIFIC_PROGRAM_NAME

#
@configuration.report_specific_program_name
CAPITALIZE_PROGRAM_NAMES =
#

CAPITALIZE_PROGRAM_NAME

Whether we should capitalize the program names or not. The difference will then be e. g. “htop” versus “Htop”.

#
@configuration.capitalize_program_names
CAPITALIZE_PROGRAM_NAME =
CAPITALIZE_PROGRAM_NAMES
STOP_ON_ERROR =
#

STOP_ON_ERROR

Whether we stop on error or not.

#
@configuration.stop_on_error
YAML_DATABASE_DIRECTORY =
#

YAML_DATABASE_DIRECTORY

Directory definition to use our yaml databases.

#
RBT.rbt_log_directory?
TRY_TO_DOWNLOAD_IF_NOT_FOUND =
#

RBT::TRY_TO_DOWNLOAD_IF_NOT_FOUND

Whether to try and download a program if we can not find it locally.

#
RBT.configuration?.try_to_download_if_not_found
FILE_REGISTERED_BINARIES =
#

FILE_REGISTERED_BINARIES

This may be a file path such as:

/home/Programs/Ruby/2.7.1/lib/ruby/site_ruby/2.7.0/rbt/yaml/registered/binaries.yml

cat $COOKBOOKS/yaml/registered_binaries.yml

#
"#{RBT.yaml_directory_for_the_registered_yaml_files?}binaries.yml"
YAML_FILE_REGISTERED_BINARIES =

Otherwise, initialize as empty hash.

{}
ALL_BINARIES =

ALL_BINARIES

YAML_FILE_REGISTERED_BINARIES
FILE_REGISTERED_LIBRARIES =
#

FILE_REGISTERED_LIBRARIES

This may be a file path such as:

/Programs/Ruby/2.4.1/lib/ruby/site_ruby/2.4.0/rbt/yaml/registered_libraries.yml

cat $RBT/yaml/registered_libraries.yml

#
"#{RBT.yaml_directory_for_the_registered_yaml_files?}libraries.yml"
YAML_FILE_REGISTERED_LIBRARIES =

Otherwise, initialize as empty hash.

{}
ALL_LIBRARIES =

ALL_LIBRARIES

YAML_FILE_REGISTERED_LIBRARIES
FILE_REGISTERED_GIR_FILES =
#

FILE_REGISTERED_GIR_FILES

#
"#{RBT.yaml_directory_for_the_registered_yaml_files?}gir_files.yml"
N_CHARACTERS_PER_LINE =
#

RBT::N_CHARACTERS_PER_LINE

Default value to be used for word-wrap splitting.

#
78
ConfigureHelp =
#

RBT::ConfigureHelp

#
ParseConfigureHelp
FILE_REGISTERED_PKGCONFIG_FILES =
#

FILE_REGISTERED_PKGCONFIG_FILES

#
"#{RBT.yaml_directory_for_the_registered_yaml_files?}pkgconfig_files.yml"
REMOTE_URL_TO_THE_HOMEBREW_FORMULAS =
#

RBT::REMOTE_URL_TO_THE_HOMEBREW_FORMULAS

#
'https://formulae.brew.sh/formula/'
CreateSlackwarePackage =
#

RBT::CreateSlackwarePackage

#
RBT::Linux::Slackware::CreateSlackwarePackage
COLOURS =
#

COLOURS

#
::Colours
HASH_DESIGNATED_COLOURS =
#

HASH_DESIGNATED_COLOURS

#
{}
HASH_INSTALLATION_INSTRUCTIONS =
#

HASH_INSTALLATION_INSTRUCTIONS

This Hash gives us an easier handle to sanitize our data.

It has some constant-shortcuts that are convenient for use lateron.

For instance, RINSTALL means “ruby install”, PINSTALL means “python install”.

#
{}
InstallThisSlackwarePackage =
#

RBT::InstallThisSlackwarePackage

#
RBT::Linux::Slackware::InstallThisSlackwarePackage
Cookbook =
#

RBT::Cookbook

This will also “alias” methods such as RBT::Cookbook[].

#
RBT::Action::Cookbooks::SanitizeCookbook

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.action(action_that_is_desired = nil, optional_argument1 = ARGV, options_hash = {}, &block) ⇒ Object

#

RBT.action (action tag, actions tag)

The second argument to this method defaults to ARGV since as of May 2022.

If you want to require all actions then use this line:

require 'rbt/requires/require_actions.rb'
#


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
# File 'lib/rbt/actions/actions.rb', line 27

def self.action(
    action_that_is_desired = nil,
    optional_argument1     = ARGV, # This is typically the main input to this method.
    options_hash           = {},
    &block
  )
  action_that_is_desired = action_that_is_desired.to_s.delete('?').to_sym
  _ = optional_argument1 # Easier "pointer" here.
  # ======================================================================= #
  # Before September 2022 this method turned the variable optional_argument1
  # into a String, if it was an Array. This is no longer done, as we lose
  # information that way.
  # ======================================================================= #
  case action_that_is_desired # (case tag)
  # ======================================================================= #
  # === :show_manual_steps
  #
  # Commandline usage example:
  #
  #   raction show_manual_steps glibc
  #
  # ======================================================================= #
  when :show_manual_steps,
       :ShowManualSteps
    require 'rbt/actions/individual_actions/show_manual_steps/show_manual_steps.rb'
    RBT.show_manual_steps(_)
  # ======================================================================= #
  # === :run_meson_configure_step
  # ======================================================================= #
  when :run_meson_configure_step
    require 'rbt/toplevel_methods/meson.rb'
    return RBT.run_meson_configure_step(_, &block)
  # ======================================================================= #
  # === :prefix_object
  # ======================================================================= #
  when :prefix_object,
       :PrefixObject,
       :prefix,
       :Prefix
    require 'rbt/actions/individual_actions/prefix/prefix.rb'
    _ = _.first if _.is_a? Array
    RBT.prefix_object(_, &block)
  # ======================================================================= #
  # === :make_app_prefix
  # ======================================================================= #
  when :make_app_prefix
    require 'rbt/toplevel_methods/make_app_prefix.rb'
    RBT.make_app_prefix(_)
  # ======================================================================= #
  # === :build_directory
  #
  # Commandline usage example:
  #
  #   raction build_directory
  #
  # ======================================================================= #
  when :build_directory,
       :BuildDirectory
    require 'rbt/actions/individual_actions/build_directory/build_directory.rb'
    RBT.build_directory(_, &block)
  # ======================================================================= #
  # === :missing_use_this_build_system_entry
  #
  # Commandline usage example:
  #
  #   raction missing_use_this_build_system_entry
  #
  # ======================================================================= #
  when :missing_use_this_build_system_entry,
       :missing_build_system,
       :MissingBuildSystem
    require 'rbt/checks_and_validations/missing_use_this_build_system_entry.rb'
    RBT.missing_use_this_build_system_entry
  # ======================================================================= #
  # === :store_abbreviations
  #
  # Commandline usage example:
  #
  #   raction abbrev
  #
  # ======================================================================= #
  when :store_abbreviations,
       :StoreAbbreviations,
       :abbrev
    require 'rbt/toplevel_methods/available_programs.rb'
    RBT.store_abbreviations
  # ======================================================================= #
  # === :ntrad
  # ======================================================================= #
  when :ntrad,
       :non_traditional,
       :appdir
    require 'rbt/actions/individual_actions/ntrad/ntrad.rb'
    _ = [_].flatten.compact
    work_on_these_programs = [_]
    RBT.ntrad(work_on_these_programs, &block)
  # ======================================================================= #
  # === :compile_in_traditional_manner
  #
  # This entry point will compile via the /usr/ prefix.
  # ======================================================================= #
  when :compile_in_traditional_manner
    require 'rbt/utility_scripts/compile_in_traditional_manner.rb'
    RBT::CompileInTraditionalManner.new(_)
  # ======================================================================= #
  # === :report_rbt_version
  # ======================================================================= #
  when :report_rbt_version
    require 'rbt/version/version.rb'
    RBT.report_rbt_version(_)
  # ======================================================================= #
  # === :rbt_version
  #
  # This action will simply return the current RBT-version, as a String,
  # such as '0.16.9'.
  # ======================================================================= #
  when :rbt_version
    require 'rbt/version/version.rb'
    return RBT.version?
  # ======================================================================= #
  # === :create_and_populate_pkgconfig_directory
  #
  # Commandline invocation example:
  #
  #   raction create_and_populate_pkgconfig_directory
  #
  # ======================================================================= #
  when :create_and_populate_pkgconfig_directory,
       :CreateAndPopulatePkgconfigDirectory,
       :consider_creating_and_populating_the_pkgconfig_directory,
       :ConsiderCreatingAndPopulatingThePkgconfigDirectory
    require 'rbt/misc/create_and_populate_pkgconfig_directory.rb'
    CreateAndPopulatePkgconfigDirectory.new(_)
  # ======================================================================= #
  # === :create_app_dir_skeleton
  #
  # This entry point must be similar to:
  #
  #   rcp htop-1.2
  #   rcp htop-1.2 --blank
  #   rcppwd
  #
  # Commandline invocation example:
  #
  #   raction create_app_dir_skeleton wesnoth-1.2.3
  #
  # ======================================================================= #
  when :create_app_dir_skeleton,
       :create_appdir_skeleton,
       :CreateAppDirSkeleton,
       :create_program_skeleton,
       :create_program,
       :CreateProgram,
       :appdir_skeleton,
       :rcp
    require 'rbt/actions/individual_actions/create_app_dir_skeleton/create_app_dir_skeleton.rb'
    RBT.create_app_dir_skeleton(_, &block)
  # ======================================================================= #
  # === :meson_appdir_prefix
  # ======================================================================= #
  when :meson_appdir_prefix,
       :MesonAppdirPrefix
    require 'rbt/toplevel_methods/meson.rb'
    RBT.meson_appdir_prefix
  # ======================================================================= #
  # === :change_tab_title
  #
  # This entry point can be used to rename a KDE konsole tab.
  # ======================================================================= #
  when :change_tab_title,
       :ChangeTabTitle,
       :consider_changing_the_tab_title,
       :ConsiderChangingTheTabTitle,
       :rename_konsole_tab,
       :rename_shell,
       :set_title,
       :consider_renaming_the_kde_konsole_tab
    require 'rbt/toplevel_methods/toplevel_methods.rb'
    RBT.consider_changing_the_tab_title(_, &block)
  # ======================================================================= #
  # === :cmake
  # ======================================================================= #
  when :cmake,
       :run_cmake
    require 'rbt/cmake/cmake.rb'
    RBT.cmake(_, &block)
  # ======================================================================= #
  # === :run_meson
  #
  # This entry point runs the whole meson-stack, aka "meson", "ninja"
  # and then "ninja install".
  # ======================================================================= #
  when :run_meson
    use_this_prefix = '/usr/'
    if _ and !_.empty?
      use_this_prefix = _
    end
    esystem 'meson --prefix='+use_this_prefix+' --libdir='+use_this_prefix+'/lib BUILD_DIRECTORY'
    cd('BUILD_DIRECTORY')
    esystem 'ninja'
    esystem 'ninja install'
  # ======================================================================= #
  # === :map_this_input_to_that_registered_program
  #
  # Usage examples from within a .rb file:
  #
  #   action(:map_this_input_to_that_registered_program, _)
  #   RBT.action(:map_this_input_to_that_registered_program, _)
  #
  # ======================================================================= #
  when :map_this_input_to_that_registered_program,
       :MapThisInputToThatRegisteredProgram
    require 'rbt/actions/individual_actions/map_this_input_to_that_registered_program/map_this_input_to_that_registered_program.rb'
    RBT::Action::MapThisInputToThatRegisteredProgram[_, &block] # This also is automatically { :be_quiet }
  # ======================================================================= #
  # === :check_for_available_versions
  #
  # Commandline usage example:
  #
  #   raction check_for_available_versions
  #
  # ======================================================================= #
  when :check_for_available_versions,
       :CheckForAvailableVersions
    require 'rbt/utility_scripts/check_for_available_versions.rb'
    RBT.check_for_available_versions(_, &block)
  # ======================================================================= #
  # === :cookbooks
  # ======================================================================= #
  when :cookbooks,
       :Cookbooks,
       :cookbook,
       :Cookbook,
       :sanitize_cookbook,
       :SanitizeCookbook,
       :sanitized_cookbook,
       :sanitize_data,
       :SanitizedData,
       :cookbook_for,
       :CookbookFor,
       :cookbook_dataset,
       :CookbookDataset
    require 'rbt/requires/require_the_cookbook_class.rb'
    RBT.sanitize_cookbook(_, options_hash, &block)
  # ======================================================================= #
  # === :save_the_available_programs_versions
  # ======================================================================= #
  when :save_the_available_programs_versions,
       :SaveTheAvailableProgramsVersions
    require 'rbt/utility_scripts/save_the_available_programs_versions.rb'
    RBT::SaveTheAvailableProgramsVersions.new
  # ======================================================================= #
  # === :backup_program
  # ======================================================================= #
  when :backup_program,
       :BackupProgram
    require 'rbt/utility_scripts/backup_program.rb'
    RBT.backup_program(_)
  # ======================================================================= #
  # === :software_manager
  #
  # This is the general action that can be used to install or otherwise
  # compile a program from its source code. The class that will handle
  # this step is RBT::Action::Installer. In other words, this entry point
  # can be used to compile a program.
  #
  # It is just about the most important entry point for RBT.actions()
  # in general.
  #
  # Usage examples:
  #
  #   RBT.action(:compile_program, 'gcc')
  #   RBT.action(:compile_program, :lfs1)
  #   RBT.action(:compile_program, :lfs2)
  #   RBT.action(:compile_program, :lfs3) { :use_sound }
  #   RBT.action(:installer, :lfs2)
  #   RBT.installer(:htop)
  #
  # Commandline usage examples:
  #
  #   raction software_manager lfs2
  #   raction installer lfs2
  #
  # ======================================================================= #
  when :software_manager,
       :SoftwareManager,
       :sm,
       :SM,
       :installer,
       :Installer,
       :install, # ← Not 100% sure about this alias here yet, but we'll see (February 2024)
       :compile_program,
       :compile
    require 'rbt/actions/individual_actions/software_manager/software_manager.rb'
    # ===================================================================== #
    # === Add support for "lfs1", "lfs2", "lfs3" as input here:
    # ===================================================================== #
    if _.is_a?(Array) and _.first.to_s.start_with?('lfs')
      _ = _.first.to_s
    end
    if _.to_s.start_with?('lfs') # Assume: :lfs1
      # =================================================================== #
      # Load the dataset from the file lfs_steps.yml next:
      # =================================================================== #
      dataset = YAML.load_file("#{project_yaml_directory?}lfs/lfs_steps.yml")
      _ = dataset[
        _.to_s.delete_prefix('lfs').to_i - 1
      ]
    end
    RBT.software_manager(_, &block)    
  # ======================================================================= #
  # === :registered_binaries
  #
  # This action will always return how many registered binaries are
  # available for the RBT project.
  #
  # Usage example from within ruby code:
  #
  #   action(:registered_binaries)
  #
  # ======================================================================= #
  when :registered_binaries,
       :RegisteredBinaries
    require 'rbt/registered/registered_binaries.rb'
    return RBT.registered_binaries?
  # ======================================================================= #
  # === :generate_homepage
  # ======================================================================= #
  when :generate_homepage,
       :GenerateHomepage
    require 'rbt/cookbooks/generate_homepage/generate_homepage.rb'
    RBT.generate_homepage(_)
  # ======================================================================= #
  # === :check_for_duplicate_binaries
  # ======================================================================= #
  when :check_for_duplicate_binaries,
       :CheckForDuplicateBinaries
    require 'rbt/utility_scripts/check_for_duplicate_binaries.rb'
    RBT::CheckForDuplicateBinaries.new(_, &block)
  # ======================================================================= #
  # === :disable_md5sum_calculation
  # ======================================================================= #
  when :disable_md5sum_calculation
    require 'rbt/requires/require_the_cookbook_class.rb'
    RBT::Action::Cookbooks::SanitizeCookbook.disable_md5sum_calculation # Cookbooks::Cookbook must provide this method.
  # ======================================================================= #
  # === :run_make_then_make_install
  # ======================================================================= #
  when :run_make_then_make_install
    require 'rbt/toplevel_methods/run_make_then_make_install.rb'
    RBT.run_make_then_make_install
  # ======================================================================= #
  # === :return_chained_programs
  # ======================================================================= #
  when :return_chained_programs,
       :ReturnChainedPrograms
    require 'rbt/constants/constants.rb'
    return RBT.return_chained_programs
  # ======================================================================= #
  # === :check_for_inclusion
  # ======================================================================= #
  when :check_for_inclusion,
       :CheckForInclusion
    require 'rbt/cookbooks/check_for_inclusion/check_for_inclusion.rb'
    RBT::Cookbooks::CheckForInclusion.new(_)
  # ======================================================================= #
  # === :cookbook_aliases
  # ======================================================================= #
  when :cookbook_aliases,
       :CookbookAliases,
       :cookbooks_aliases,
       :CookbooksAliases
    require 'rbt/aliases/aliases.rb'
    RBT.cookbook_aliases
  # ======================================================================= #
  # === :suggest_cookbook_for
  #
  # Usage example from within ruby code:
  #
  #   action(:suggest_cookbook_for, :htop)
  #
  # ======================================================================= #
  # bl $RBT/actions/individual_actions/cookbooks/suggest_cookbook_for/suggest_cookbook_for.rb
  # ======================================================================= #
  when :suggest_cookbook_for
    require 'rbt/actions/individual_actions/cookbooks/suggest_cookbook_for/suggest_cookbook_for.rb'
    RBT.suggest_cookbook_for(_, &block)
  # ======================================================================= #
  # === :symlink_into_the_usr_bin_hierarchy
  #
  # Symlink the given Array into the /usr/bin/ hierarchy. Optionally a
  # directory can be given as main input.
  #
  # Invocation example:
  #
  #   RBT.action(:symlink_into_the_usr_bin_hierarchy, :ninja)
  #
  # ======================================================================= #
  when :symlink_into_the_usr_bin_hierarchy
    require 'rbt/utility_scripts/symlink_into_the_usr_bin_hierarchy.rb'
    RBT::SymlinkIntoTheUsrBinHierarchy.new(_, &block)
  # ======================================================================= #
  # === :to_current
  #
  # You can pass the program name and program version into this entry
  # point. Passing the full path is also possible.
  #
  # Usage example:
  #
  #   RBT.action(:to_current, 'htop-1.2')
  #
  # ======================================================================= #
  when :to_current,
       :ToCurrent
    require 'rbt/actions/individual_actions/to_current/to_current.rb'
    RBT.to_current(_, &block)
  # ======================================================================= #
  # === :symlink_from_to_current
  #
  # Usage example from within ruby files:
  #
  #   action(:symlink_from_to_current, _)
  #
  # ======================================================================= #
  when :symlink_from_to_current,
       :SymlinkFromToCurrent,
       :symlink_this_appdir,
       :SymlinkThisAppdir
    require 'rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb'
    RBT::SymlinkFromToCurrent.new(_)
  # ======================================================================= #
  # === :force
  #
  # This variant forcues the symlink-action.
  # ======================================================================= #
  when :force,
       :symlink_from_to_current2,
       :SymlinkFromToCurrent2
    require 'rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb'
    _ = RBT::SymlinkFromToCurrent.new(_, :do_not_run_yet)
    _.do_force_symlink
    _.run
  # ======================================================================= #
  # === :infobox_for
  # ======================================================================= #
  when :infobox_for,
       :InfoboxFor,
       :infobox,
       :Infobox,
       :flexbox,
       :Flexbox
    begin # Try to pull in the sexy flexbox.
      require 'ascii_paradise/requires/require_flexbox.rb'
      AsciiParadise::Flexbox.new(_, &block)
    rescue LoadError
      :flexbox_is_not_available
    end
  # ======================================================================= #
  # === :ensure_that_the_log_directory_exists
  #
  # Usage example:
  #
  #   action(:ensure_that_the_log_directory_exists)
  #
  # ======================================================================= #
  when :ensure_that_the_log_directory_exists
    _ = log_directory?
    mkdir(_) unless File.directory? _
  # ======================================================================= #
  # === :generate_version_file
  #
  # Usage example:
  #
  #   action(:generate_version_file)
  #
  # ======================================================================= #
  when :generate_version_file,
       :GenerateVersionFile
    require 'rbt/toplevel_methods/generate_programs_version_yaml_file.rb'
    RBT.generate_programs_version_yaml_file
  # ======================================================================= #
  # === :test_this_alias
  # ======================================================================= #
  when :test_this_alias,
       :rbt_test_alias
    require 'rbt/toplevel_methods/available_programs.rb'
    require 'rbt/aliases/aliases.rb'
    RBT.test_this_alias(_)
  # ======================================================================= #
  # === :return_appdir_prefix
  #
  # Usage example:
  #
  #   action(:return_appdir_prefix, 'htop')
  #
  # ======================================================================= #
  when :return_appdir_prefix,
       :appdir_prefix
    RBT.return_appdir_prefix(_)
  # ======================================================================= #
  # === :determine_appdir_prefix_from_this_input
  #
  # Usage example:
  #
  #   RBT.installer(:determine_appdir_prefix_from_this_input)
  #
  # ======================================================================= #
  when :determine_appdir_prefix_from_this_input
    RBT.determine_appdir_prefix_from_this_input(_)
  # ======================================================================= #
  # === :extract
  #
  # This entry point allows the user to extract an archive.
  #
  # It is a special entry point, because it can also handle pseudo
  # symbols, such as in the following case:
  #
  #   RBT.action(:extract, ':htop') { :be_silent }
  #
  # This will take htop from its default position on the local filesystem.
  #
  # Usage example:
  #
  #   RBT.action(:extract, '/home/x/src/htop/htop-3.1.2.tar.xz', extract_to: '/Depot/jjjj/')
  #    
  # Commandline invocation example:
  #
  #   raction mate_desktop
  #
  # ======================================================================= #
  when :extract,
       :Extract,
       :action_extracter,
       :extract_what_to
    require 'rbt/actions/individual_actions/extract/extract.rb'
    extract_to = options_hash[:extract_to] if options_hash.is_a?(Hash)
    unless _.is_a?(Symbol)
      _ = _.to_s
    end
    if extract_to.nil?
      extract_to = RBT.log_directory?
    end
    RBT.extract(_, extract_to, &block)
  # ======================================================================= #
  # === :program_version
  #
  # This entry point will specifically make use of
  # ProgramInformation.program_version? to find out the program-version
  # from a given String.
  #
  # Commandline usage example:
  #
  #   raction program_version gtkmm-3.24.7
  #
  # ======================================================================= #
  when :program_version,
       :ProgramVersion
    require 'program_information'
    return ProgramInformation.program_version?(_, &block)
  # ======================================================================= #
  # === :program_name
  #
  # This entry point will specifically make use of
  # ProgramInformation.program_name? to find out the program-name from
  # a given String.
  #
  # Commandline usage example:
  #
  #   raction program_name gtkmm-3.24.7
  #
  # ======================================================================= #
  when :program_name,
       :ProgramName
    require 'program_information'
    return ProgramInformation.program_name?(_, &block)
  # ======================================================================= #
  # === :increment_program_version
  #
  # Commandline usage example:
  #
  #   raction increment_program_version
  #
  # ======================================================================= #
  when :increment_program_version,
       :IncrementProgramVersion,
       :increment,
       :Increment
    require 'rbt/utility_scripts/increment_program_version/increment_program_version.rb'
    RBT.increment_program_version
  # ======================================================================= #
  # === report_mate_desktop_version
  #
  # Commandline invocation example:
  #
  #   raction mate_desktop
  #
  # ======================================================================= #
  when :report_mate_desktop_version,
       :report_the_mate_desktop_version,
       :report_mate_desktop,
       :mate_desktop_version,
       :mate_version,
       :mate_desktop,
       :mate?
    require 'rbt/actions/individual_actions/information/report_mate_desktop_version.rb'
    RBT.report_mate_desktop_version
  # ======================================================================= #
  # === :create_program_version_url_file
  #
  # Usage example:
  #
  #   RBT.action(:CreateProgramVersionUrlFile, :ruby)
  #
  # Commandline invocation example:
  #
  #   raction create_program_version_url_file
  #
  # ======================================================================= #
  when :create_program_version_url_file,
       :CreateProgramVersionUrlFile,
       :program_version_url_file
    require 'rbt/actions/individual_actions/information/create_program_version_url_file.rb'
    RBT.create_program_version_url_file(_)
  # ======================================================================= #
  # === :compile_the_python_addons
  # ======================================================================= #
  when :compile_the_python_addons
    require 'rbt/requires/require_the_installer_class.rb'
    compile_object = RBT::Action::Installer.new { :dont_run_yet }
    compile_object.compile_the_python_addons
    compile_object.do_initiate_batch_compilation
  # ======================================================================= #
  # === :gitty
  # ======================================================================= #
  when :gitty,
       :Gitty
    require 'rbt/utility_scripts/gitty.rb'
    RBT.gitty(_)
  # ======================================================================= #
  # === :simple_appdir_configure
  #
  #   bl $RBT/actions/individual_actions/simple_appdir_configure/simple_appdir_configure.rb
  #
  # ======================================================================= #
  when :simple_appdir_configure,
       :SimpleAppdirConfigure
    require 'rbt/actions/individual_actions/simple_appdir_configure/simple_appdir_configure.rb'
    RBT.simple_appdir_configure(_)
  # ======================================================================= #
  # === :file_ldd_dataset
  # ======================================================================= #
  when :file_ldd_dataset,
       :ldd_file
    require 'rbt/utility_scripts/simplified_ldd_output.rb'
    RBT.file_ldd_dataset?
  # ======================================================================= #
  # === :ldd_dataset
  #
  # Usage example:
  #
  #   dataset = RBT.action(:ldd_dataset)
  #
  # ======================================================================= #
  when :ldd_dataset,
       :LddDataset
    require 'rbt/utility_scripts/simplified_ldd_output.rb'
    RBT.ldd_dataset?
  # ======================================================================= #
  # === :create_ldd_dataset
  #
  # This will create a new ldd-dependencies file, containing all
  # local libraries.
  #
  # Commandline invocation example:
  #
  #   rbt_action create_ldd_dataset
  #
  # ======================================================================= #
  when :create_ldd_dataset,
       :create_dependencies_of_libraries_file,
       :CreateDependenciesOfLibrariesFile
    require 'rbt/utility_scripts/simplified_ldd_output.rb'
    RBT.create_ldd_dataset
  # ======================================================================= #
  # === :show_configuration_options
  #
  # This entry point allows the user to query the configuration
  # options used by a given program. On my home computer I have
  # aliased this to "sco", so I can just do "sco gcc" to query
  # the configuration options used by gcc.
  # ======================================================================= #
  when :show_configuration_options,
       :ShowConfigurationOptions,
       :sco
    require 'rbt/requires/require_show_configuration_options.rb'
    RBT.show_configuration_options(_, &block)
  # ======================================================================= #
  # === :scan_for_blfs_programs
  #
  # Commandline invocation example:
  #
  #   raction scan_for_blfs_programs
  #
  # ======================================================================= #
  when :scan_for_blfs_programs,
       :ScanForBlfsPrograms,
       :missing_blfs,
       :MissingBlfs
    require 'rbt/actions/individual_actions/cookbooks/scan_for_blfs_programs/scan_for_blfs_programs.rb'
    RBT.scan_for_blfs_programs
  # ======================================================================= #
  # === :return_blfs
  #
  # This variant, although a slight misnomer, is for commandline use.
  #
  # It will simply print the BLFS of the program at hand.
  #
  # Commandline invocation example:
  #
  #   rbt_action return_blfs
  #
  # ======================================================================= #
  when :return_blfs
    require 'rbt/actions/individual_actions/cookbooks/blfs/blfs.rb' # bl $RBT/actions/individual_actions/cookbooks/blfs/blfs.rb
    e RBT.return_blfs_page_of_this_program(_, &block)
  # ======================================================================= #
  # === :copy_these_archives
  # ======================================================================= #
  when :copy_these_archives,
       :CopyTheseArchives,
       :copy,
       :Copy
    require 'rbt/utility_scripts/copy_these_archives.rb'
    RBT.copy_these_archives(_)
  # ======================================================================= #
  # === :not_found_libraries
  #
  # This entry point allows the user to show libraries that are missing,
  # aka "not found libraries".
  # ======================================================================= #
  when :not_found_libraries,
       :NotFoundLibraries
    require 'rbt/utility_scripts/not_found_libraries.rb'
    RBT.not_found_libraries
  # ======================================================================= #
  # === :remove_empty_directories
  #
  # Commandline usage example:
  #
  #   raction remove_empty_directories
  #
  # ======================================================================= #
  when :remove_empty_directories,
       :RemoveEmptyDirectories
    require 'rbt/utility_scripts/remove_empty_directories.rb'
    RBT.remove_empty_directories(_)
  # ======================================================================= #
  # === :chain_compile
  #
  # Invocation example:
  #
  #   raction chain_compile kde5_plasma
  #
  # ======================================================================= #
  when :chain_compile,
       :ChainCompile
    require 'rbt/utility_scripts/chain_compile.rb'
    RBT.chain_compile(_, &block)
  # ======================================================================= #
  # === :show_compile_chain
  #
  # Invocation example:
  #
  #   raction show_compile_chain kde5_plasma
  #
  # ======================================================================= #
  when :show_compile_chain,
       :ShowCompileChain,
       :display_compile_chain,
       :DisplayCompileChain,
       :show_compile_chain_of,
       :ShowCompileChainOf
    require 'rbt/actions/individual_actions/show_compile_chain/show_compile_chain.rb'
    RBT.show_compile_chain(_)
  # ======================================================================= #
  # === :download_all_source_archives
  # ======================================================================= #
  when :download_all_source_archives,
       :DownloadAllSourceArchives,
       :obtain_source_archives,
       :ObtainSourceArchives,
       :batch_download_all_source_archives,
       :BatchDownloadAllSourceArchives
    require 'rbt/cookbooks/download_all_source_archives/download_all_source_archives.rb'
    RBT::Cookbooks::DownloadAllSourceArchives.new(_)
  # ======================================================================= #
  # === :batch_validate_the_cookbook_recipes
  # ======================================================================= #
  when :batch_validate_the_cookbook_recipes,
       :BatchValidateTheCookbookRecipes,
       :validate_entries,
       :ValidateEntries
    require 'rbt/checks_and_validations/batch_validate_the_cookbook_recipes.rb'
    RBT.validate_entries
  # ======================================================================= #
  # === :homepage
  # ======================================================================= #
  when :homepage,
       :report_the_homepage,
       :report_homepage
    require 'rbt/cookbooks/homepage/homepage.rb'
    RBT.homepage(_)
  # ======================================================================= #
  # === :update_available_programs
  #
  # Commandline usage example:
  #
  #   raction update_available_programs
  #
  # ======================================================================= #
  when :update_available_programs,
       :UpdateAvailablePrograms,
       :save_available_programs,
       :SaveAvailablePrograms
    require 'rbt/toplevel_methods/available_programs.rb'
    RBT.store_available_programs_into_a_yaml_file
  # ======================================================================= #
  # === :url1
  #
  # This will display the url1 content on the commandline.
  #
  # Commandline invocation example:
  #
  #   raction url1 openssl
  #   raction url1 cairo
  #   raction url1 pango
  #   raction url1 sdl2
  #   raction url1 sdl2image
  #   raction url1 sdl2mixer
  #
  # ======================================================================= #
  when :url1
    result = action(:SanitizeCookbook, _, &block)
    e result.url?
  # ======================================================================= #
  # === :url2
  #
  # This will display the url2 content on the commandline.
  #
  # Commandline invocation example:
  #
  #   raction url2 ruby 
  #
  # ======================================================================= #
  when :url2
    result = action(:SanitizeCookbook, _, &block)
    e result.url2?
  # ======================================================================= #
  # === :return_blfs_page_of_this_program
  #
  # Usage examples:
  #
  #   RBT.action(:blfs, 'glibc')
  #   action(:blfs, 'abc') { :def }
  #   action(:return_blfs_page_of_this_program, 'abc') { :def }
  #
  # Commandline invocation example:
  #
  #   rbt_action return_blfs_page_of_this_program htop
  #
  # ======================================================================= #
  when :return_blfs_page_of_this_program,
       :return_blfs_entry_for,
       :blfs_page_of_this_program,
       :blfs_page,
       :report_all_blfs_entries
    require 'rbt/actions/individual_actions/cookbooks/blfs/blfs.rb'
    RBT.return_blfs_page_of_this_program(_, &block)
  # ======================================================================= #
  # === :blfs_instance
  #
  # This will return an instance of class BLFS.
  #
  # Usage example:
  #
  #   action(:blfs_instance, 'abc') { :def }
  #
  # ======================================================================= #
  when :blfs_instance,
       :BlfsInstance,
       :blfs,
       :Blfs
    require 'rbt/actions/individual_actions/cookbooks/blfs/blfs.rb'
    RBT.blfs_instance(_, &block)
  # ======================================================================= #
  # === :validate_blfs_entries
  #
  # Commandline usage example:
  #
  #   raction validate_blfs_entries
  #
  # ======================================================================= #
  when :validate_blfs_entries
    require 'rbt/checks_and_validations/validate_blfs_entries.rb'
    RBT.validate_blfs_entries
  # ======================================================================= #
  # === :paste_blfs
  # ======================================================================= #
  when :paste_blfs
    require 'rbt/requires/require_the_installer_class.rb'
    _ = RBT::Action::Installer.new(_, :do_not_run_yet) 
    _.try_to_show_the_BLFS_content_of_this_program(_)
  # ======================================================================= #
  # === :cleanup_system_tags
  #
  # Usage example:
  #
  #   action(:CleanupSystemTags) { :be_quiet }
  #
  # ======================================================================= #
  when :cleanup_system_tags,
       :CleanupSystemTags
    require 'rbt/utility_scripts/cleanup_system_tags.rb'
    RBT::CleanupSystemTags.new(_, &block)
  # ======================================================================= #
  # === :allowed_cookbook_entries
  # ======================================================================= #
  when :allowed_cookbook_entries,
       :AllowedCookbookEntries
    require 'rbt/checks_and_validations/allowed_cookbook_entries.rb'
    RBT::Cookbooks::AllowedCookbookEntries.new
  # ======================================================================= #
  # === :static_overview_of_the_available_binaries_on_this_computer_system
  # ======================================================================= #
  when :static_overview_of_the_available_binaries_on_this_computer_system,
       :StaticOverviewOfTheAvailableBinariesOnThisComputerSystem
    require 'rbt/utility_scripts/static_overview_of_the_available_binaries_on_this_computer_system.rb'
    RBT.static_overview_of_the_available_binaries_on_this_computer_system
  # ======================================================================= #
  # === :validate_cookbook_aliases
  #
  # Usage example:
  #
  #   RBT.action(:validate_cookbook_aliases)
  #
  # Commandline usage example:
  #
  #   raction validate_cookbook_aliases
  #
  # ======================================================================= #
  when :validate_cookbook_aliases,
       :ValidateCookbookAliases,
       :validate_the_cookbook_aliases,
       :ValidateTheCookbookAliases
    require 'rbt/checks_and_validations/validate_cookbook_aliases.rb'
    RBT.validate_cookbook_aliases
  # ======================================================================= #
  # === :expand_cookbooks
  #
  # Commandline invocation example:
  #
  #   raction expand_cookbooks
  #
  # ======================================================================= #
  when :expand_cookbooks,
       :ExpandCookbooks,
       :expand,
       :EXPAND,
       :expand_this_cookbook,
       :ExpandThisCookbook
    require 'rbt/actions/individual_actions/cookbooks/expand_cookbooks/expand_cookbooks.rb'
    RBT.expand_cookbooks(_)
  # ======================================================================= #
  # === :show_last_updated
  #
  # Usage example:
  #
  #   action(:ShowLastUpdated)
  #
  # Commandline usage example:
  #
  #   raction show_last_updated
  #
  # ======================================================================= #
  when :show_last_updated,
       :ShowLastUpdated
    require 'rbt/cookbooks/show_last_updated.rb'
    RBT.show_last_updated(_)
  # ======================================================================= #
  # === :purge_incorrect_yaml_directories_in_the_programs_hierarchy
  #
  # Commandline usage example:
  #
  #   raction purge_incorrect_yaml_directories_in_the_programs_hierarchy
  #
  # ======================================================================= #
  when :purge_incorrect_yaml_directories_in_the_programs_hierarchy,
       :PurgeIncorrectYamlDirectoriesInTheProgramsHierarchy
    require 'rbt/utility_scripts/purge_incorrect_yaml_directories_in_the_programs_hierarchy.rb'
    RBT::PurgeIncorrectYamlDirectoriesInTheProgramsHierarchy.new(_, &block)
  # ======================================================================= #
  # === :binary_name_belongs_to_which_program
  # ======================================================================= #
  when :binary_name_belongs_to_which_program,
       :BinaryNameBelongsToWhichProgram
    require 'rbt/utility_scripts/binary_name_belongs_to_which_program.rb'
    RBT::BinaryNameBelongsToWhichProgram.new(_, &block)
  # ======================================================================= #
  # === :check_for_gnome_updates
  # ======================================================================= #
  when :check_for_gnome_updates,
       :CheckForGnomeUpdates
    require 'rbt/check_for_updates/check_for_gnome_updates.rb'
    RBT::Cookbooks::CheckForGnomeUpdates.new(_, &block)
  # ======================================================================= #
  # === :register_program_files_into_yaml_database
  # ======================================================================= #
  when :register_program_files_into_yaml_database,
       :RegisterProgramFilesIntoYamlDatabase
    require 'rbt/utility_scripts/register_program_files_into_yaml_database.rb'
    RBT.register_program_files_into_yaml_database(_, &block)
  # ======================================================================= #
  # === :colour_make_install
  # ======================================================================= #
  when :colour_make_install,
       :ColourMakeInstall
    require 'rbt/make/colour_make_install.rb'
    RBT.colour_make_install(_)
  # ======================================================================= #
  # === :filter_for_valid_program_names
  #
  # Here we will modify e. g. "htop.yml" towards "htop" or "hto" towards
  # "htop".
  # ======================================================================= #
  when :filter_for_valid_program_names,
       :main_filter,
       :sanitize_this_program_name
    require 'rbt/actions/individual_actions/filter_for_valid_program_names/filter_for_valid_program_names.rb'
    return RBT.filter_for_valid_program_names(_)
  # ======================================================================= #
  # === :show_how_many_files_are_tracked
  #
  # Invocation example from the commandline:
  #
  #   raction show_how_many_files_are_tracked
  #
  # ======================================================================= #
  when :show_how_many_files_are_tracked,
       :ShowHowManyFilesAreTracked
    require 'rbt/actions/individual_actions/statistics/show_how_many_files_are_tracked.rb'
    RBT.show_how_many_files_are_tracked
  # ======================================================================= #
  # === :compile_strategies
  #
  # Invocation example from the commandline:
  #
  #   raction compile_strategies
  #
  # ======================================================================= #
  when :compile_strategies,
       :CompileStrategies,
       :report_the_compile_strategies,
       :ReportTheCompileStrategies
    require 'rbt/actions/individual_actions/statistics/compile_strategies.rb'
    RBT.report_the_compile_strategies
  # ======================================================================= #
  # === :show_compile_time_statistics
  #
  # Invocation example from the commandline:
  #
  #   raction show_compile_time_statistics
  #
  # ======================================================================= #
  when :show_compile_time_statistics,
       :ShowCompileTimeStatistics
    require 'rbt/actions/individual_actions/statistics/show_compile_time_statistics.rb'
    RBT.show_compile_time_statistics
  # ======================================================================= #
  # === :return_compile_time_statistics
  #
  # Commandline usage example:
  #
  #   raction return_compile_time_statistics
  #
  # ======================================================================= #
  when :return_compile_time_statistics,
       :ReturnCompileTimeStatistics
    require 'rbt/actions/individual_actions/statistics/return_compile_time_statistics.rb'
    pp RBT.return_compile_time_statistics
  # ======================================================================= #
  # === :apply_sed_operations
  # ======================================================================= #
  when :apply_sed_operations,
       :ApplySedOperations
    require 'rbt/utility_scripts/apply_sed_operations.rb'
    RBT.apply_sed_operations(_)
  # ======================================================================= #
  # === :local_check_for_latest
  #
  # Commandline usage example:
  #
  #   raction local_check_for_latest
  #
  # ======================================================================= #
  when :local_check_for_latest,
       :LocalCheckForLatest
    require 'rbt/cookbooks/local_check_for_latest/local_check_for_latest.rb'
    RBT.local_check_for_latest
  # ======================================================================= #
  # === :update_entry
  # ======================================================================= #
  when :update_entry,
       :UpdateEntry
    require 'rbt/requires/require_class_update_entry.rb'
    RBT::UpdateEntry.new(_, &block)
  # ======================================================================= #
  # === :remove_program
  # ======================================================================= #
  when :remove_program,
       :RemoveProgram
    require 'rbt/utility_scripts/remove_program.rb'
    RBT.remove_program(_)
  # ======================================================================= #
  # === :remove_programs
  #
  # This is the plurarl form.
  # ======================================================================= #
  when :remove_programs,
       :RemovePrograms
    require 'rbt/utility_scripts/remove_programs/remove_programs.rb'
    RBT.remove_programs
  # ======================================================================= #
  # === :return_xfce_version
  # ======================================================================= #
  when :return_xfce_version
    require 'rbt/toplevel_methods/try_to_return_a_special_compile_component.rb'
  # ======================================================================= #
  # === :report_xfce_version
  #
  # Commandline invocation example:
  #
  #   raction xfce_version
  #   raction xfce?
  #
  # ======================================================================= #
  when :report_xfce_version,
       :xfce_version,
       :xfce?
    require 'rbt/actions/individual_actions/information/report_xfce_version.rb'
    RBT.report_xfce_version
  # ======================================================================= #
  # === :highest
  #
  # Usage example:
  #
  #   action(:highest)
  #
  # Commandline invocation example:
  #
  #   raction highest 55
  #
  # ======================================================================= #
  when :highest
    require 'rbt/actions/individual_actions/information/highest.rb'
    RBT.highest(_)
  # ======================================================================= #
  # === :create_dependencies_file
  #
  # This entry point is specifically for GoboLinux, allowing the user
  # to create a dependencies file.
  # ======================================================================= #
  when :create_dependencies_file,
       :CreateDependenciesFile
    require 'rbt/linux/gobolinux/create_dependencies_file.rb'
    create_dependencies_file = RBT::Linux::Gobolinux::CreateDependenciesFile.new(
      _[0], 
      _[1],
      :dont_run_yet
    )
    create_dependencies_file.allow_creation_of_resources
    create_dependencies_file.run # Finally, run it.
  # ======================================================================= #
  # === :show_dependencies_of
  # ======================================================================= #
  when :show_dependencies_of
    require 'rbt/cookbooks/show_dependencies_of.rb'
    RBT.show_dependencies_of(_)
  # ======================================================================= #
  # === :update_kde_porting_aids
  # ======================================================================= #
  when :update_kde_porting_aids,
       :UpdateKdePortingAids
    require 'rbt/check_for_updates/update_kde_porting_aids.rb'
    RBT.update_kde_porting_aids
  # ======================================================================= #
  # === :update_kde_apps
  # ======================================================================= #
  when :update_kde_apps,
       :UpdateKdeApps,
       :update_kde_application,
       :UpdateKdeApplication,
       :update_kde_applications,
       :UpdateKdeApplications
    require 'rbt/check_for_updates/update_kde_applications.rb'
    RBT.update_kde_applications
  # ======================================================================= #
  # === :update_kde_framework
  # ======================================================================= #
  when :update_kde_framework
    require 'rbt/check_for_updates/update_kde_framework.rb'
    RBT.update_kde_framework
  # ======================================================================= #
  # === :update_all_ruby_gems
  # ======================================================================= #
  when :update_all_ruby_gems,
       :check_for_new_release_on_rubygems,
       :check_for_new_releases_on_rubygems
    require 'rbt/check_for_updates/check_for_new_release_on_rubygems.rb'
    RBT.update_all_ruby_gems
  # ======================================================================= #
  # === :check_for_existing_source_directories
  # ======================================================================= #
  when :check_for_existing_source_directories,
       :CheckForExistingSourceDirectories
    require 'rbt/cookbooks/check_for_existing_source_directories.rb'
    RBT.check_if_source_directories_exist
  # ======================================================================= #
  # === :try_to_return_a_special_compile_component
  #
  #   rbt_action try_to_return_a_special_compile_component
  #
  # ======================================================================= #
  when :try_to_return_a_special_compile_component,
       :TryToReturnASpecialCompileComponent
    require 'rbt/toplevel_methods/try_to_return_a_special_compile_component.rb'
    RBT.try_to_return_a_special_compile_component(_)
  # ======================================================================= #
  # === :generate_shell_completion
  # ======================================================================= #
  when :generate_shell_completion,
       :GenerateShellCompletion
    require 'rbt/generate_files/generate_shell_completion.rb'
    RBT.generate_shell_completion(_)
  # ======================================================================= #
  # === :symlink_all_upcased_programs_to_downcased_variants
  # ======================================================================= #
  when :symlink_all_upcased_programs_to_downcased_variants,
       :SymlinkAllUpcasedProgramsToDowncasedVariants
    require 'rbt/utility_scripts/symlink_all_upcased_programs_to_downcased_variants.rb'
    RBT::SymlinkAllUpcasedProgramsToDowncasedVariants.new
  # ======================================================================= #
  # === :package_rbt_scripts
  # ======================================================================= #
  when :package_rbt_scripts,
       :PackageRbtScripts
    require 'rbt/utility_scripts/package_rbt_scripts.rb'
    RBT::PackageRbtScripts.new
  # ======================================================================= #
  # === :sed_wrapper
  # ======================================================================= #
  when :sed_wrapper,
       :SedWrapper
    require 'rbt/actions/individual_actions/sed_wrapper/sed_wrapper.rb'
    RBT.sed_wrapper(_)
  # ======================================================================= #
  # === :report_how_many_binaries_are_registered
  #
  # Commandline invocation example:
  #
  #   raction report_how_many_binaries_are_registered
  #
  # ======================================================================= #
  when :report_how_many_binaries_are_registered
    require 'rbt/toplevel_methods/report_how_many_binaries_are_registered.rb'
    RBT.report_how_many_binaries_are_registered
  # ======================================================================= #
  # === :search_for_tags
  # ======================================================================= #
  when :search_for_tags,
       :SearchForTags,
       :stag
    require 'rbt/requires/require_search_for_tags.rb'
    RBT.search_for_tags(_)
  # ======================================================================= #
  # === :remove_all_symlinks
  # ======================================================================= #
  when :remove_all_symlinks,
       :RemoveAllSymlinks
    require 'rbt/utility_scripts/remove_all_symlinks.rb'
    RemoveAllSymlinks.new
  # ======================================================================= #
  # === :url_new
  # ======================================================================= #
  when :url_new
    require 'rbt/cookbooks/url/url.rb'
    RBT::Cookbooks::Url.new(_)
  # ======================================================================= #
  # === :url
  # ======================================================================= #
  when :url
    require 'rbt/cookbooks/url/url.rb'
    RBT.return_url1_of_this_program(_)
  # ======================================================================= #
  # === :create_shell_script_containing_these_program_versions
  # ======================================================================= #
  when :create_shell_script_containing_these_program_versions,
       :generate_a_big_shell_script
    require 'rbt/shell/create_shell_script_containing_these_program_versions.rb'
    RBT.create_shell_script_containing_these_program_versions
  # ======================================================================= #
  # === :create_shell_scripts
  # ======================================================================= #
  when :create_shell_scripts,
       :create_bash_scripts,
       :to_bash,
       :CreateBashScripts
    require 'rbt/generate_files/create_bash_scripts.rb'
    RBT::CreateBashScripts.new # bl $RBT/create_bash_scripts.rb
  # ======================================================================= #
  # === :register_everything
  #
  # Commandline invocation example:
  #
  #   raction register_everything
  #
  # ======================================================================= #
  when :register_everything,
       :RegisterEverything
    require 'rbt/registered/register_everything.rb'
    RBT.register_everything
  # ======================================================================= #
  # === :show_all_about
  #
  # Usage example:
  #
  #   RBT.action(:show_all_about, 'ruby')
  #
  # Commandline invocation example:
  #
  #   raction show_all_about ruby
  #
  # ======================================================================= #
  when :show_all_about,
       :ShowAllAbout
    require 'rbt/actions/individual_actions/information/show_all_about.rb'
    RBT.show_all_about(_)
  # ======================================================================= #
  # === :remove_libtool_files
  #
  # Invocation example:
  #
  #   raction remove_libtool_files kde5_plasma
  #
  # ======================================================================= #
  when :remove_libtool_files,
       :delete_libtool_files
    require 'rbt/libtool/remove_libtool_files/remove_libtool_files.rb'
    RBT.remove_libtool_files(_)
  # ======================================================================= #
  # === :expanded_cookbooks
  #
  # raction expanded_cookbooks htop
  #
  # ======================================================================= #
  when :expanded_cookbooks,
       :ExpandedCookbooks,
       :expanded
    require 'rbt/actions/individual_actions/cookbooks/expanded_cookbook/expanded_cookbook.rb'
    pp RBT.expanded_cookbook(_).dataset?
  # ======================================================================= #
  # === :aggregate_information_from_the_expanded_cookbooks
  #
  # Commandline invocation example:
  #
  #   raction aggregate
  #
  # ======================================================================= #
  when :aggregate_information_from_the_expanded_cookbooks,
       :aggregate
    require 'rbt/actions/individual_actions/information/aggregate_information_from_the_expanded_cookbooks.rb'
    RBT.aggregate_information_from_the_expanded_cookbooks(_)
  # ======================================================================= #
  # === :scan_source_archive
  # ======================================================================= #
  when :scan_source_archive,
       :ScanSourceArchive
    require 'rbt/cookbooks/scan_source_archive/scan_source_archive.rb'
    RBT.scan_source_archive      
  # ======================================================================= #
  # === :report_the_registered_programs
  #
  # Invocation example from the commandline:
  #
  #   raction report_the_registered_programs
  #
  # ======================================================================= #
  when :report_the_registered_programs,
       :ReportTheRegisteredPrograms
    require 'rbt/utility_scripts/report_the_registered_programs.rb'
    RBT.report_the_registered_programs
  # ======================================================================= #
  # === :feedback_licenses
  #
  # Commandline usage example:
  #
  #   raction feedback_licenses
  #
  # ======================================================================= #
  when :feedback_licenses,
       :feedback_licences,
       :FeedbackLicenses,
       :FeedbackLicences
    require 'rbt/cookbooks/feedback_licenses.rb'
    RBT.feedback_licenses(_) # bl $RUBY_COOKBOOKS/lib/cookbooks/feedback_licenses.rb
  # ======================================================================= #
  # === :scan_for_missing_last_update_entries
  # ======================================================================= #
  when :scan_for_missing_last_update_entries,
       :missing_last_update_entries
    require 'rbt/checks_and_validations/scan_for_missing_last_update_entries.rb:class'
    RBT::Cookbooks::ScanForMissingLastUpdateEntries.new
  # ======================================================================= #
  # === check_for_mate_desktop_updates
  #
  # Commandline invocation example:
  #
  #   raction check_for_mate_desktop_updates
  #
  # ======================================================================= #
  when :check_for_mate_desktop_updates,
       :CheckForMateDesktopUpdates,
       :mate_updates
    require 'rbt/check_for_updates/check_for_mate_desktop_updates.rb'
    RBT.check_for_mate_desktop_updates
  # ======================================================================= #
  # === :show_all_statistics
  #
  # Usage example:
  #
  #   RBT.action(:show_all_statistics)
  #
  # Commandline invocation example:
  #
  #   raction show_all_statistics
  #
  # ======================================================================= #
  when :show_all_statistics,
       :ShowAllStatistics,
       :show_statistics,
       :ShowStatistics
    require 'rbt/actions/individual_actions/statistics/show_all_statistics.rb'
    RBT.show_all_statistics
  # ======================================================================= #
  # === :display_barplot_statistics
  #
  # Usage example:
  #
  #   action(:display_barplot_statistics)
  #
  # Invocation example from the commandline:
  #
  #   raction display_barplot_statistics
  #
  # ======================================================================= #
  when :display_barplot_statistics
    require 'rbt/actions/individual_actions/statistics/display_barplot_statistics.rb'
    RBT.display_barplot_statistics
  # ======================================================================= #
  # === :uninstall
  # ======================================================================= #
  when :uninstall
    require 'rbt/utility_scripts/uninstall.rb'
    RBT.uninstall(_)
  # ======================================================================= #
  # === :what_could_become_an_app_dir
  # ======================================================================= #
  when :what_could_become_an_app_dir
    require 'rbt/utility_scripts/what_could_become_an_app_dir.rb'
    RBT.what_could_become_an_app_dir
  # ======================================================================= #
  # === :run_configure
  #
  # Usage example:
  #
  #   RBT.action(:run_configure, :htop)
  #
  # ======================================================================= #
  when :run_configure,
       :configure
    require 'rbt/actions/individual_actions/configure/configure.rb'
    RBT::Actions::Configure.new(_)
  # ======================================================================= #
  # === :run_configure
  #
  # This will really just run "./configure" basically.
  #
  # Usage example:
  #
  #   RBT.installer(:htop)
  #
  # ======================================================================= #
  when :simple_run_configure,
       :simple_configure
    yielded = nil
    if block_given?
      yielded = yield
    end
    cmd = "./configure #{_}"
    case yielded
    # ===================================================================== #
    # === :colourize_and_padded
    # ===================================================================== #
    when :colourize_and_padded,
         :colourized_and_padded
      e
      e steelblue(cmd)
      e
      system cmd
    # ===================================================================== #
    # === :colourized
    # ===================================================================== #
    when :colourized,
         :colourize
      e steelblue(cmd)
      system cmd
    else # else without colours.
      esystem cmd
    end
  # ======================================================================= #
  # === :all_urls
  # ======================================================================= #
  when :all_urls,
       :all_URLs
    require 'rbt/cookbooks/all_urls/all_urls.rb'
    RBT.all_urls(_)
  # ======================================================================= #
  # === :create_registered_tags
  #
  # Commandline usage example:
  #
  #   raction create_registered_tags
  #
  # ======================================================================= #
  when :create_registered_tags,
       :CreateRegisteredTags
    require 'rbt/registered/registered_tags.rb'
    RBT.create_registered_tags
  # ======================================================================= #
  # === :feedback_description_of
  #
  # Commandline usage example:
  #
  #   raction feedback_description_of ruby
  #
  # ======================================================================= #
  when :feedback_description_of
    require 'rbt/actions/individual_actions/information/feedback_description_of.rb'
    RBT.feedback_description_of(_)
  # ======================================================================= #
  # === :feedback_program_description
  #
  # This entry point will quickly show the description of the given
  # program, onto the commandline.
  #
  # Commandline usage example:
  #
  #   raction feedback_program_description ruby
  #
  # ======================================================================= #
  when :feedback_program_description
    require 'rbt/toplevel_methods/feedback_program_description.rb'
    RBT.feedback_program_description(_)
  # ======================================================================= #
  # === :create_cookbook_yaml_file
  #
  # Commandline usage example:
  #
  #   raction create_cookbook_yaml_file libxml2
  #
  # ======================================================================= #
  when :create_cookbook_yaml_file,
       :create_new_cookbook,
       :create_a_new_cookbook
    require 'rbt/cookbooks/create_cookbook_yaml_file/create_cookbook_yaml_file.rb'
    RBT.create_cookbook_yaml_file(_)
  # ======================================================================= #
  # === :update_tags
  #
  # This entry point will update the registered tags.
  # ======================================================================= #
  when :update_tags,
       :registered_tags
    require 'rbt/registered/registered_tags.rb'
    RBT::RegisteredTags.new
  # ======================================================================= #
  # === :chained_programs
  # ======================================================================= #
  when :chained_programs
    require 'rbt/constants/constants.rb'
    return RBT.chained_programs?
  # ======================================================================= #
  # === :url_action
  # ======================================================================= #
  when :url_action
    require 'rbt/url_action/url_action.rb'
    RBT::UrlAction[_]
  # ======================================================================= #
  # === :dual_compile
  # ======================================================================= #
  when :dual_compile
    require 'rbt/toplevel_methods/dual_compile.rb'
    RBT.dual_compile(_)
  # ======================================================================= #
  # === :custom_toolchain
  # ======================================================================= #
  when :custom_toolchain
    require 'rbt/requires/require_the_installer_class.rb'
    RBT::Action::Installer.new(_)
  # ======================================================================= #
  # === :chroot_compile
  # ======================================================================= #
  when :chroot_compile
    require 'rbt/toplevel_methods/chroot_and_chown_related_code.rb'
    RBT.chroot_compile(_)
  # ======================================================================= #
  # === :uchroot_compile
  # ======================================================================= #
  when :uchroot_compile
    require 'rbt/toplevel_methods/toplevel_methods.rb'
    RBT.uchroot_compile(_) # uchroot nasm bison
  # ======================================================================= #
  # === :generate_all_slack_desc_files
  #
  # This action allows the user to batch-create all slack-desc files.
  # ======================================================================= #
  when :generate_all_slack_desc_files
    require 'rbt/requires/require_the_installer_class.rb'
    _ = RBT::Action::Installer.new(:dont_run_yet)
    target = "#{rbt_log_directory?}slackware_desc_files/"
    opnn; mkdir(target, :be_verbose)
    cd target
    RBT.all_programs?.each {|entry|
      _.generate_slack_desc_file_for_this_program(entry)
    }
  # ======================================================================= #
  # === :trad
  # ======================================================================= #
  when :trad,
       :traditional
    require 'rbt/utility_scripts/compile_in_traditional_manner.rb'
    RBT::CompileInTraditionalManner.new(_)
  # ======================================================================= #
  # === :report_where_the_source_directory_can_be_found
  # ======================================================================= #
  when :report_where_the_source_directory_can_be_found,
       :report_base_directory,
       :report_archive_directory
    e "#{rev}The directory for source archives can be found at:"
    e
    e "  #{sdir(RBT.source_directory?)}"
    e
  # ======================================================================= #
  # === :report_host_cpu
  # ======================================================================= #
  when :report_host_cpu
    e "#{rev}The host system (CPU) in use is: "\
      "#{sfancy(host_cpu?)}"
  # ======================================================================= #
  # === :manual_steps
  # ======================================================================= #
  when :manual_steps
    require 'rbt/requires/require_the_installer_class.rb'
    compile_this_program = _.first
    compile_object = RBT::Action::Installer.new(compile_this_program, :do_not_run_yet)
    compile_object.set_compile_this_program(compile_this_program)
    compile_object.menu('--manual-steps')
    compile_object.run
  # ======================================================================= #
  # === :find_all_archive_types
  # ======================================================================= #
  when :find_all_archive_types
    require 'rbt/cookbooks/find_all_archive_types.rb'
    RBT::Cookbooks::FindAllArchiveTypes.new(_).show_results
  # ======================================================================= #
  # === :beautify_configure_help_output
  # ======================================================================= #
  when :beautify_configure_help_output
    require 'rbt/utility_scripts/beautify_configure_help_output.rb'
    RBT::BeautifyConfigureHelpOutput.new(_)
  # ======================================================================= #
  # === :colour_make
  # ======================================================================= #
  when :colour_make
    require 'rbt/make/make.rb'
    RBT::Make.new(_)
  # ======================================================================= #
  # === :compile_via_appdir_prefix_without_symlinking
  # ======================================================================= #
  when :compile_via_appdir_prefix_without_symlinking
    require 'rbt/toplevel_methods/compile_via_appdir_prefix_without_symlinking.rb'
    RBT.compile_via_appdir_prefix_without_symlinking(_)
  # ======================================================================= #
  # === :feedback_all_available_formats
  # ======================================================================= #
  when :feedback_all_available_formats
    require 'rbt/cookbooks/sanitize_cookbook/misc.rb'
    RBT::Cookbooks::SanitizeCookbook.feedback_all_available_formats
  # ======================================================================= #
  # === :create_snapcraft_file
  # ======================================================================= #
  when :create_snapcraft_file
    require 'rbt/cookbooks/create_snapcraft_file.rb'
    RBT::Cookbooks::CreateSnapcraftFile.new(_)
  # ======================================================================= #
  # === :extra_information
  # ======================================================================= #
  when :extra_information
    require 'rbt/utility_scripts/extra_information.rb'
    RBT::ExtraInformation.show(_)
  # ======================================================================= #
  # === :autoupdate_this_program
  # ======================================================================= #
  when :autoupdate_this_program
    require 'rbt/utility_scripts/autoupdate_this_program.rb'
    RBT::AutoupdateThisProgram.new(_)
  # ======================================================================= #
  # === :autosymlink
  # ======================================================================= #
  when :autosymlink
    require 'rbt/utility_scripts/autosymlink.rb'
    RBT::Autosymlink.new(_)
  # ======================================================================= #
  # === :compile_these_programs
  #
  # Invocation example:
  #
  #   compile_these_programs php python
  #
  # ======================================================================= #
  when :compile_these_programs
    require 'rbt/requires/require_the_installer_class.rb'
    if _.is_a?(String) and _.include?(' ')
      _ = optional_argument1.split(' ')
    end
    _.each {|entry|
      RBT::Action::Installer.new(entry)
    }
  # ======================================================================= #
  # === :compile_into_home_dir
  # ======================================================================= #
  when :compile_into_home_dir,
       :home_dir
    require 'rbt/utility_scripts/compile_into_home_dir.rb'
    RBT::CompileIntoHomeDir.new(_)
  # ======================================================================= #
  # === :home_dir_without_symlinking
  # ======================================================================= #
  when :home_dir_without_symlinking,
       :home_dir_without_symlink
    require 'rbt/utility_scripts/compile_into_home_dir_without_symlinking.rb'
    RBT::CompileIntoHomeDirWithoutSymlinking.new(_)
  # ======================================================================= #
  # === :parse_help
  # ======================================================================= #
  when :parse_help,
       :parse_configure_help
    require 'rbt/utility_scripts/parse_configure_help.rb'
    RBT::ParseConfigureHelp.new(_)
  # ======================================================================= #
  # === :query_file_association
  # ======================================================================= #
  when :query_file_association
    require 'rbt/utility_scripts/query_file_association.rb'
    RBT::QueryFileAssociation.new(_)
  # ======================================================================= #
  # === :make
  # ======================================================================= #
  when :make
    require 'rbt/make/make.rb'
    RBT::Make.new(_).run
  # ======================================================================= #
  # === :show_versions_of_these_programs
  #
  # Usage example:
  #
  #   show_versions_of_these_programs htop php ruby
  #
  # ======================================================================= #
  when :show_versions_of_these_programs
    require 'rbt/utility_scripts/show_versions_of_these_programs.rb'
    RBT::ShowVersionsOfThesePrograms.new(_)
  # ======================================================================= #
  # === :toolchain
  # ======================================================================= #
  when :toolchain
    require 'rbt/utility_scripts/toolchain.rb'
    RBT::Toolchain.new(_)
  # ======================================================================= #
  # === :chainer
  # ======================================================================= #
  when :chainer
    require 'rbt/utility_scripts/chainer.rb'
    RBT::Chainer.new(_)
  # ======================================================================= #
  # === :check_for_binary_duplicates
  # ======================================================================= #
  when :check_for_binary_duplicates
    require 'rbt/toplevel_methods/check_for_binary_duplicates.rb'
    RBT.check_for_binary_duplicates    
  # ======================================================================= #
  # === :create_programs_url_file
  # ======================================================================= #
  when :create_programs_url_file
    require 'rbt/actions/individual_actions/information/create_program_version_url_file.rb'
    RBT.create_programs_url_file
  # ======================================================================= #
  # === :create_log_directory
  #
  # This entry point can be used to create a new default log
  # directory for the RBT gem.
  # ======================================================================= #
  when :create_log_directory,
       :log_directory
    require 'rbt/toplevel_methods/files_and_directories_related_methods.rb'
    RBT.create_log_directory
  # ======================================================================= #
  # === :report_total_size_of_all_archives
  #
  # Invocation example:
  #
  #   raction report_total_size_of_all_archives
  #
  # ======================================================================= #
  when :report_total_size_of_all_archives
    require 'rbt/toplevel_methods/archive_related_code.rb'
    RBT.report_total_size_of_all_archives
  # ======================================================================= #
  # === :create_html_page_for_these_programs
  #
  # Invocation example:
  #
  #   create_html_page_for_these_programs php ruby libx11 zlib
  #
  # ======================================================================= #
  when :create_html_page_for_these_programs
    require 'rbt/toplevel_methods/html.rb'
    _ = _
    if _.is_a?(String) and _.include?(' ')
      _ = _.split(' ')
    end
    RBT.create_html_page_for_these_programs(_)
  # ======================================================================= #
  # === :create_programs_version_html_file
  #
  # Commandline invocation example:
  #
  #   raction create_programs_version_html_file
  #
  # ======================================================================= #
  when :create_programs_version_html_file
    require 'rbt/toplevel_methods/html.rb'
    RBT.create_programs_version_html_file
  # ======================================================================= #
  # === :find_url_for
  # ======================================================================= #
  when :find_url_for
    require 'rbt/toplevel_methods/url.rb'
    RBT.find_url_for(_)
  # ======================================================================= #
  # === :find_likely_directory
  # ======================================================================= #
  when :find_likely_directory
    require 'rbt/actions/individual_actions/find_likely_directory/find_likely_directory.rb'
    RBT.find_likely_directory(_)
  # ======================================================================= #
  # === :binary_of
  # ======================================================================= #
  when :binary_of
    require 'rbt/utility_scripts/binary_name_belongs_to_which_program.rb'
    RBT::BinaryNameBelongsToWhichProgram.new(_)
  # ======================================================================= #
  # === :headers
  # ======================================================================= #
  when :headers
    require 'rbt/actions/individual_actions/headers/headers.rb'
    RBT.headers(ARGV).report
  # ======================================================================= #
  # === :remove_symlinks
  # ======================================================================= #
  when :remove_symlinks
    require 'rbt/utility_scripts/remove_symlinks.rb'
    RBT::RemoveSymlinks.new(_)
  # ======================================================================= #
  # === :show_available_tags
  # ======================================================================= #
  when :show_available_tags
    require 'rbt/toplevel_methods/show_available_tags.rb'
    RBT.show_available_tags(:default, :be_quiet)
  # ======================================================================= #
  # === :download
  # ======================================================================= #
  when :download,
       :rbt_download # A necessary "alias".
    require 'rbt/toplevel_methods/download.rb'
    RBT.download(_)
  # ======================================================================= #
  # === :libtool
  # ======================================================================= #
  when :libtool
    require 'rbt/libtool/libtool.rb'
    RBT.libtool(_)
  # ======================================================================= #
  # === :gather_information
  # ======================================================================= #
  when :gather_information
    require 'rbt/actions/individual_actions/information/gather_information.rb'
    RBT.gather_information(_)
  # ======================================================================= #
  # === :multi_url_displayer
  # ======================================================================= #
  when :multi_url_displayer,
       :multi_URL_displayer
    require 'rbt/cookbooks/multi_url_displayer/multi_url_displayer.rb'
    RBT::Cookbooks::MultiUrlDisplayer.new(_)
  # ======================================================================= #
  # === :create_pkgconfig_file
  # ======================================================================= #
  when :create_pkgconfig_file
    require 'rbt/generate_files/create_pkgconfig_file.rb'
    RBT::CreatePkgconfigFile.new(_)
  # ======================================================================= #
  # === :install_this_rubygem
  #
  # Usage example:
  #
  #   RBT.action(:install_this_rubygem, 'path_to_the.gem')
  #
  # Commandline invocation example:
  #
  #   raction install_gem /home/x/src/rails/rails-7.0.1.gem
  #
  # ======================================================================= #
  when :install_this_rubygem,
       :install_this_gem,
       :install_gem
    RBT.install_this_rubygem(_)
  # ======================================================================= #
  # === :build_detector
  #
  # Commandline invocation example:
  #
  #   raction build_detector
  #
  # ======================================================================= #
  when :build_detector
    require 'rbt/utility_scripts/build_detector.rb'
    RBT::BuildDetector.new(_).report
  # ======================================================================= #
  # === :raw_cookbook
  #
  # Usage example:
  #
  #   RBT.action(:raw_cookbook, 'glib')
  #
  # ======================================================================= #
  when :raw_cookbook,
       :raw
    require 'rbt/actions/individual_actions/cookbooks/raw_cookbook/raw_cookbook.rb'
    RBT.raw_cookbook(_, options_hash, &block)
  # ======================================================================= #
  # === :check_this_cookbook_file_for_errors
  #    
  # Commandline invocation example:
  #
  #   raction check_this_cookbook_file_for_errors ruby
  #
  # ======================================================================= #
  when :check_this_cookbook_file_for_errors
    require 'rbt/toplevel_methods/check_this_cookbook_file_for_errors.rb'
    RBT.check_this_cookbook_file_for_errors(_)
  # ======================================================================= #
  # === :remove_outdated_archives
  #
  # Commandline invocation example:
  #
  #   raction remove_outdated_archives
  #
  # ======================================================================= #
  when :remove_outdated_archives
    require 'rbt/utility_scripts/remove_outdated_archives.rb'
    RBT::RemoveOutdatedArchives.new(_)
  # ======================================================================= #
  # === :scookie
  # ======================================================================= #
  when :scookie
    require 'rbt/toplevel_methods/report_extended_information_about_this_program.rb'
    RBT.report_extended_information_about_this_program(_)
  # ======================================================================= #
  # === :find_alternative_archive
  #
  # Usage example:
  #
  #   RBT.action(:find_alternative_archive, '$MY_SRC/gdkpixbuf/gdk-pixbuf')
  #
  # Commandline invocation example:
  #
  #   raction find_alternative_archive $MY_SRC/gdkpixbuf/gdk-pixbuf
  #
  # ======================================================================= #
  when :find_alternative_archive,
       :alternative_archive,
       :return_alternative_archive
    require 'rbt/actions/individual_actions/find_alternative_archive/find_alternative_archive.rb'
    return RBT.return_alternative_archive(_)
  # ======================================================================= #
  # === :generate_programs_version_yaml_file
  #
  # Usage example:
  #
  #   RBT.action(:generate_programs_version_yaml_file)
  #
  # Commandline invocation example:
  #
  #   raction generate_programs_version_yaml_file
  #
  # ======================================================================= #
  when :generate_programs_version_yaml_file
    require 'rbt/toplevel_methods/generate_programs_version_yaml_file.rb'
    RBT.generate_programs_version_yaml_file
  # ======================================================================= #
  # === :try_to_find_shortcut_for_a_chain_compiled_program
  #
  # Usage example:
  #
  #   RBT.action(:try_to_find_shortcut_for_a_chain_compiled_program, 'kde1')
  #
  # Commandline invocation example:
  #
  #   raction shortcut_to_chain_compiled_program kde1
  #
  # ======================================================================= #
  when :try_to_find_shortcut_for_a_chain_compiled_program,
       :shortcut_to_chain_compiled_program
    require 'rbt/toplevel_methods/try_to_find_shortcut_for_a_chain_compiled_program.rb'
    e RBT.try_to_find_shortcut_for_a_chain_compiled_program(_)
  # ======================================================================= #
  # === :get_all_files_from
  #
  # Usage example:
  #
  #   RBT.action(:get_all_files_from, '/home/x/src/htop/')
  #
  # ======================================================================= #
  when :get_all_files_from
    RBT.get_all_files_from(_)
  # ======================================================================= #
  # === :infer_build_system
  #
  # Usage example:
  #
  #   RBT.action(:infer_build_system)
  #
  # Commandline invocation example:
  #
  #   raction installer php
  #
  # ======================================================================= #
  when :infer_build_system,
       :infer
    require 'rbt/actions/individual_actions/infer_build_system/infer_build_system.rb'
    RBT.infer_then_report_the_build_system(_)
  # ======================================================================= #
  # === :fast_return_file_size_of_this_program
  #
  # Usage example:
  #
  #   RBT.action(:fast_return_file_size_of_this_program, 'glib')
  #
  # ======================================================================= #
  when :fast_return_file_size_of_this_program
    require 'rbt/toplevel_methods/fast_return_file_size_of_this_program.rb'
    RBT.fast_return_file_size_of_this_program(_, &block)
  # ======================================================================= #
  # === :check_for_invalid_entries_in_this_cookbook
  # ======================================================================= #
  when :check_for_invalid_entries_in_this_cookbook
    require 'rbt/actions/individual_actions/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb'
    RBT::Action::Cookbooks::CheckForInvalidEntriesInThisCookbook.new(_)
  # ======================================================================= #
  # === nil
  # ======================================================================= #
  when nil
    e 'Please provide a valid action to the RBT.action() '\
      'method (nil was supplied).'
  else # else tag
    e "#{rev}Not a registered action: "\
      "#{action_that_is_desired} "\
      "(class: #{action_that_is_desired.class})"
  end
end

.action_compile(compile_this_program, &block) ⇒ Object

#

RBT.action_compile

This provides a simplified “compile-action”.

Invocation example:

RBT.acompile(:htop)
#


2138
2139
2140
2141
2142
2143
# File 'lib/rbt/actions/actions.rb', line 2138

def self.action_compile(
    compile_this_program,
    &block
  )
  RBT.action(:Installer, compile_this_program.to_s, &block)
end

.aggregate_information_from_the_expanded_cookbooks(optional_argument1, extract_to = :default) ⇒ Object

#

RBT.aggregate_information_from_the_expanded_cookbooks

#


170
171
172
173
174
175
# File 'lib/rbt/actions/individual_actions/information/aggregate_information_from_the_expanded_cookbooks.rb', line 170

def self.aggregate_information_from_the_expanded_cookbooks(
    optional_argument1,
    extract_to = :default
  )
  RBT::Action::AggregateInformationFromTheExpandedCookbooks.new
end

.all_binaries?Boolean

#

RBT.all_binaries?

Get back all registered binaries.

This is guaranteed to return a Hash.

#

Returns:

  • (Boolean)


46
47
48
# File 'lib/rbt/toplevel_methods/all_binaries.rb', line 46

def self.all_binaries?
  ALL_BINARIES
end

.all_headers?Boolean

#

RBT.all_headers?

#

Returns:

  • (Boolean)


227
228
229
# File 'lib/rbt/registered/registered_headers.rb', line 227

def self.all_headers?
  RBT::Cookbooks.all_headers?
end

.all_libraries?Boolean

#

RBT.all_libraries?

Get back all registered libraries.

This is guaranteed to return a Hash.

#

Returns:

  • (Boolean)


51
52
53
# File 'lib/rbt/toplevel_methods/all_libraries.rb', line 51

def self.all_libraries?
  ALL_LIBRARIES
end

.all_tags?Boolean

#

RBT.all_tags?

#

Returns:

  • (Boolean)


39
40
41
# File 'lib/rbt/registered/registered_tags.rb', line 39

def self.all_tags?
  ALL_TAGS
end

.all_urls(optional_commands = nil) ⇒ Object

#

RBT.all_urls

This is simply a convenience method.

#


231
232
233
# File 'lib/rbt/cookbooks/all_urls/all_urls.rb', line 231

def self.all_urls(optional_commands = nil)
  RBT::Cookbooks::AllUrls.new(optional_commands)
end

.append_error_message(i) ⇒ Object

#

RBT.append_error_message

#


35
36
37
# File 'lib/rbt/toplevel_methods/error_message.rb', line 35

def self.append_error_message(i)
  @error_message << i
end

.append_what_into(what, into) ⇒ Object

#

RBT.append_what_into

#


1429
1430
1431
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 1429

def self.append_what_into(what, into)
  RBT::SaveFile.append_what_into(what, into)
end

.apply_sed_operations(i = ARGV, &block) ⇒ Object

#

RBT.apply_sed_operations

#


203
204
205
# File 'lib/rbt/utility_scripts/apply_sed_operations.rb', line 203

def self.apply_sed_operations(i = ARGV, &block)
  RBT::ApplySedOperations.new(i, &block)
end

.are_we_on_gobolinux?Boolean

#

RBT.are_we_on_gobolinux?

This method can help us when we wish to determine whether we are on GoboLinux or whether we are not.

Note that this will return a “static” result. If you need a value that is dynamic, you ought to query an instance variable instead.

#

Returns:

  • (Boolean)


35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/rbt/toplevel_methods/gobolinux.rb', line 35

def self.are_we_on_gobolinux?
  require 'rbt/constants/constants.rb'
  return_this = false
  use_this_env_key = 'IS_ON_GOBOLINUX'
  if ENV.has_key? use_this_env_key
    if ENV[use_this_env_key].to_s == '1'
      return_this = true
    end
  elsif File.exist? ::RBT.file_is_on_gobolinux
    return_this = true
  elsif GOBOLINUX_LAYOUT.to_s == '1' # The constant GOBOLINUX_LAYOUT is a String.
    return_this = true
  elsif File.exist?(RBT.file_is_on_gobolinux) and
        (File.read(RBT.file_is_on_gobolinux).strip.to_s == '1')
    return_this = true
  elsif is_this_a_real_gobolinux_system?
    return_this = true
  end
  return return_this
end

.array_all_BLFS_entriesObject

This method will return an Array of all BLFS entries. It will not hold any specific information about the programs that hold these BLFS entries.

#


555
556
557
558
559
560
561
562
563
564
565
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 555

def self.array_all_BLFS_entries
  array = []
  all_yaml_files = Dir["#{cookbook_directory?}*.yml"]
  content_of_all_yaml_files = all_yaml_files.map {|entry|
    "#{File.read(entry)}\n"
  }.join("\n")
  array = content_of_all_yaml_files.scan(
    /^ blfs:\n - (.+)$/ # Grab the relevant entries here.
  ).flatten
  return array
end

.array_all_BLFS_entries_attributedObject

#

RBT.array_all_BLFS_entries_attributed

This method will (silently) return an Array with all entries that have the BLFS tag.

This method is similar to RBT.array_all_BLFS_entries, but it will also return all BLFS entries associated with the corresponding program name.

This method used grep in the past, but will use Dir[] and .scan() since as of 21.05.2020 instead. This should make it work better on windows specifically, for instance.

The result will look like this:

["libpcap",
 "https://www.linuxfromscratch.org/blfs/view/svn/basicnet/libpcap.html"],
["xulrunner",
 "https://www.linuxfromscratch.org/blfs/view/7.5/x/xulrunner.html"],

Usage example:

x = RBT.return_all_blfs_entries; pp x; ''
#


592
593
594
595
596
597
598
599
600
601
602
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 592

def self.array_all_BLFS_entries_attributed
  array = []
  all_yaml_files = Dir["#{cookbook_directory?}*.yml"]
  content_of_all_yaml_files = all_yaml_files.map {|entry|
    "#{File.read(entry)}\n"
  }.join("\n")
  array = content_of_all_yaml_files.scan(
    /^(.+):\n^ blfs:\n - (.+)$/
  )
  return array
end

.array_all_rubygemsObject

#

RBT.array_all_rubygems

This method will return all rubygems, as an Array.

This can then be used in other programs, such as in RBT to batch-install all rubygems.

#


42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/rbt/toplevel_methods/rubygems.rb', line 42

def self.array_all_rubygems
  # ======================================================================= #
  # This is a bit hack-ish, but it is also fast. We will scan for entries
  # that hold the content 'url1:'; and also the substring '.gem' within
  # that entry. Other entries will be ignored.
  # ======================================================================= #
  array = []
  # ======================================================================= #
  # Obtain all .yml files first:
  # ======================================================================= #
  all_yaml_files = Dir["#{RBT.individual_cookbooks_directory?}*.yml"]
  all_yaml_files.each {|path_to_the_yaml_file|
    name_of_the_program = File.basename(path_to_the_yaml_file.sub(/\.yml$/,''))
    dataset_of_the_program = File.read(path_to_the_yaml_file)
    if dataset_of_the_program =~ /^ url1: .*\.gem$/
      # =================================================================== #
      # In this case we will assume that it is a ruby .gem file, so we
      # add it into the Array that will be returned.
      # =================================================================== #
      array << name_of_the_program
    end
  }
  array.sort # Keep it sorted, for easier reading.
end

.array_binary_duplicates(from_this_directory = :default, to = :default) ⇒ Object

#

RBT.array_binary_duplicates

This method will return an Array of all “/usr/bin/” binary duplicates, or from wherever else you wish to get the listing of duplicates. The default target is “/usr/bin/” but you could also pass in the argument “/usr/bin/”, as second argument to this method.

The first argument to this method is the directory where your main binaries should reside at. On GoboLinux-like systems, this will default to ‘/System/Index/bin’.

Invocation example for this method from within ruby code:

array = RBT.array_binary_duplicates
#


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rbt/toplevel_methods/check_for_binary_duplicates.rb', line 31

def self.array_binary_duplicates(
    from_this_directory = :default,
    to                  = :default
  )
  # ======================================================================= #
  # The following two case-menus will handle the :default arguments
  # passed. The default is, on my home system, for '/System/Index/bin/'
  # as the first argument, and for '/usr/bin/' as the second argument
  # to this method here.
  # ======================================================================= #
  case from_this_directory
  # ======================================================================= #
  # === :default
  # ======================================================================= #
  when :default
    from_this_directory = RBT.sysbin_directory?
  end
  case to
  # ======================================================================= #
  # === :default
  # ======================================================================= #
  when :default
    to = '/usr/bin/'
  end
  array = []
  Dir["#{from_this_directory}*"].each {|this_file| # Return the Array here.
    name_of_the_program = File.basename(this_file)
    target_file = "#{to}#{name_of_the_program}"
    if File.exist? target_file
      array << target_file
    end
  }
  return array
end

.array_these_ruby_gems_were_updated?Boolean

#

RBT.array_these_ruby_gems_were_updated?

#

Returns:

  • (Boolean)


20
21
22
# File 'lib/rbt/toplevel_methods/rubygems.rb', line 20

def self.array_these_ruby_gems_were_updated?
  @array_these_ruby_gems_were_updated
end

.audio_directory?Boolean

#

RBT.audio_directory?

Where to keep audio/sound files. (Not a very important constant; it is mostly for my own home system really.)

#

Returns:

  • (Boolean)


26
27
28
# File 'lib/rbt/configuration/configuration.rb', line 26

def self.audio_directory?
  @configuration.audio_dir
end

.author_name?Boolean

#

RBT.author_name?

#

Returns:

  • (Boolean)


314
315
316
# File 'lib/rbt/toplevel_methods/toplevel_methods.rb', line 314

def self.author_name?
  'Robert A. Heiler'
end

.automatically_create_package?Boolean

#

RBT.automatically_create_package?

Whether or not to create a package automatically.

#

Returns:

  • (Boolean)


82
83
84
# File 'lib/rbt/configuration/configuration.rb', line 82

def self.automatically_create_package?
  @configuration.automatically_create_package
end

.autoswitch_python?Boolean

#

RBT.autoswitch_python?

Whether to autoswitch python or whether to not autoswitch python.

If set to true then RBT will attempt to switch to another python version, if it is available. It will try to do so only once, though.

#

Returns:

  • (Boolean)


174
175
176
# File 'lib/rbt/configuration/configuration.rb', line 174

def self.autoswitch_python?
  RBT.configuration?.autoswitch_python
end

.available_programs?(extra_arguments = nil) ⇒ Boolean

#

RBT.available_programs?

This method will return an Array of all available (registered or otherwise made known) programs.

By default it will return a list of programs from the given .yml files.

The optional argument allows us to also use abbreviations, if the argument is the Symbol called :include_abbreviations, :include_aliases or :with_aliases. (These symbols are aliases and do the same.)

The reason why this is not enabled by default is primarily because many other files are only interested in the directly registered programs.

The aliases will at first appear in a Hash, with key->value pairs such as:

"gnomewe"=>"gnomeweather"

Obviously we are here only interested in the keys, which is why the code below will use the method .keys().

Keep in mind that whenever you wish to compile one such program, you need to check to which the program may point at.

#

Returns:

  • (Boolean)


384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
# File 'lib/rbt/toplevel_methods/available_programs.rb', line 384

def self.available_programs?(
    extra_arguments = nil
  )
  array = determine_available_programs
  case extra_arguments
  # ======================================================================= #
  # === :include_abbreviations
  # ======================================================================= #
  when :include_abbreviations,
       :include_aliases,
       :with_aliases,
       :with_abbreviations
    keys = @hash_aliases_to_the_available_programs.keys
    array << keys
  else
    if extra_arguments.is_a? Symbol
      e "Warning - not registered Symbol called :#{extra_arguments.to_s}"
    end
  end
  # ======================================================================= #
  # The resulting Array that will be returned from this method will
  # always be sorted and contain only unique entries:
  # ======================================================================= #
  array = array.flatten.uniq.sort
  array # Return the Array finally.
end

.backup_program(i) ⇒ Object

#

RBT.backup_program

#


123
124
125
# File 'lib/rbt/utility_scripts/backup_program.rb', line 123

def self.backup_program(i)
  RBT::BackupProgram.new(i)
end

.batch_compile(i = ARGV, try_to_use_chained_programs = true) ⇒ Object

#

RBT.batch_compile

This method can be used to batch compile programs.

The second argument to this method controls as to whether we will make use of chained programs or not.

#


17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/rbt/toplevel_methods/batch_compile.rb', line 17

def self.batch_compile(
    i                           = ARGV,
    try_to_use_chained_programs = true
  )
  require 'rbt/constants/constants.rb'
  require 'rbt/requires/require_actions.rb'
  i = [i].flatten.compact
  compile_object = action(:Installer) { :do_not_run_yet }
  i.each {|compile_this_program|
    if compile_this_program.is_a?(String) and compile_this_program.include?(',')
      compile_this_program = compile_this_program.split(',').map(&:strip)
    end
    # ===================================================================== #
    # Obtain the Array next that will hold our chained programs.
    # ===================================================================== #
    if RBT.chained_programs?.include? compile_this_program and
      try_to_use_chained_programs 
      compile_this_program = RBT.chained_programs?[compile_this_program]
    end
    compile_object.set_compile_these_programs(i)
    compile_object.run
    compile_object.reset
  }
end

.blfs_instance(i = ARGV, &block) ⇒ Object

#

RBT.blfs_instance

This method will guarantee that a new instance of class Blfs is returned.

#


537
538
539
540
541
542
543
544
545
546
# File 'lib/rbt/actions/individual_actions/cookbooks/blfs/blfs.rb', line 537

def self.blfs_instance(
    i = ARGV,
    &block
  )
  if block_given?
    return RBT::Action::Cookbooks::Blfs.new(i, &block)
  else
    return RBT::Action::Cookbooks::Blfs.new(i) # { :no_colours_be_quiet }
  end
end

.build_directory(i = nil, &block) ⇒ Object

#

RBT.build_directory

#


342
343
344
345
346
347
# File 'lib/rbt/actions/individual_actions/build_directory/build_directory.rb', line 342

def self.build_directory(
    i = nil, # This is deliberately nil by default.
    &block
  )
  RBT::Action::BuildDirectory.new(i, &block)
end

.build_type?Boolean

#

RBT.build_type?

This should default to the current directory.

The method will return a Symbol, such as :configure or :cmake.

If the build type can not be determined then :unknown will be returned.

Usage examples:

RBT.build_type? # => :configure
RBT.build_type? # => :cmake
#

Returns:

  • (Boolean)


265
266
267
# File 'lib/rbt/utility_scripts/build_detector.rb', line 265

def self.build_type?
  RBT::BuildDetector.build_type?
end

.chain_compile(i = ARGV) ⇒ Object

#

RBT.chain_compile

#


225
226
227
# File 'lib/rbt/utility_scripts/chain_compile.rb', line 225

def self.chain_compile(i = ARGV)
  RBT::ChainCompile.new(i) { :require_compile_base }
end

.chained_programs?(i = RBT.file_cookbook_chained_programs) ⇒ Boolean

#

RBT.chained_programs?

Simply return the dataset from the yaml file here.

The file that is used here is the file chained_programs.yml, which you can access via:

bl $RSRC/rbt/lib/rbt/yaml/chained_programs.yml
#

Returns:

  • (Boolean)


699
700
701
702
703
# File 'lib/rbt/constants/constants.rb', line 699

def self.chained_programs?(
    i = RBT.file_cookbook_chained_programs
  )
  YAML.load_file(i)
end

.change_directory(i) ⇒ Object

#

RBT.change_directory

#


180
181
182
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 180

def self.change_directory(i)
  Dir.chdir(i)
end

.check_and_report_whether_file_exists(i, optional_cookbook_object = nil) ⇒ Object

#

RBT.check_and_report_whether_file_exists

The first argument to this method must be the path to the archive.

#


18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/rbt/toplevel_methods/report_extended_information_about_this_program.rb', line 18

def self.check_and_report_whether_file_exists(
    i,
    optional_cookbook_object = nil
  )
  i = i.to_s
  unless File.exist? i
    opnn; Colours.ewarn 'This archive does not exist locally, at'
    opnn; Colours.ewarn "  `#{Colours.sfile(i)}#{swarn('`')}"
    if optional_cookbook_object
      if optional_cookbook_object.do_not_download?
        opne 'This is, however had, no problem as it will not'
        opne 'be downloaded anyway.'
      end
    end
    cliner :lightblue
  end
end

.check_for_available_versions(i = ARGV, run_already = true, &block) ⇒ Object

#

RBT.check_for_available_versions

#


261
262
263
264
265
266
267
# File 'lib/rbt/utility_scripts/check_for_available_versions.rb', line 261

def self.check_for_available_versions(
    i           = ARGV,
    run_already = true,
    &block
  )
  RBT::Cookbooks::CheckForAvailableVersions.new(i, run_already, &block)
end

.check_for_binary_duplicatesObject

#

RBT.check_for_binary_duplicates

This method will check for binary duplicates in the directory /usr/bin/.

#


72
73
74
75
76
77
78
79
# File 'lib/rbt/toplevel_methods/check_for_binary_duplicates.rb', line 72

def self.check_for_binary_duplicates
  array_binary_duplicates.each {|target_file|
    surrounded_target_file = "`#{target_file}`"
    colourized_target_file = sfile(surrounded_target_file)
    padded_and_colourized_target_file = colourized_target_file.ljust(70)
    e "#{rev}Yes, #{padded_and_colourized_target_file} #{rev}is a duplicate."
  }
end
#

This method is mostly an ad-hoc method. It will try to remove entries such as /home/Programs/Libsndfile/Current1.0.31 specifically.

#


31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/rbt/checks_and_validations/check_for_faulty_current_symlinks.rb', line 31

def self.check_for_faulty_current_symlinks(
    in_this_directory
  )
  if in_this_directory.is_a? Array
    in_this_directory = in_this_directory.first
  end
  if in_this_directory.nil?
    in_this_directory = ::RBT.programs_dir?
  end
  in_this_directory = in_this_directory.dup
  in_this_directory << '/' unless in_this_directory.end_with? '/'
  all_current_symlinks = Dir[in_this_directory+'**/**'].select {|entry|
    File.symlink?(entry) and entry.include?('/Current')
  }
  # ======================================================================= #
  # Next, distinguish between:
  #
  #   "/home/Programs/Libsndfile/Current"
  #
  # and:
  #
  #   "/home/Programs/Libsndfile/Current1.0.31"
  #
  # ======================================================================= #
  all_faulty_current_symlinks = all_current_symlinks.select {|entry|
    last_char = entry[-1, 1]
    (last_char =~ /\d+/)
  }
  if all_faulty_current_symlinks.empty?
    opn(namespace: 'RBT'); e 'No faulty symlinks were found.'
    opn(namespace: 'RBT'); e 'The directory that was checked was `'+
                             ::Colours.sdir(in_this_directory)+
                             rev+'`.'
  else
    opne 'Faulty symlinks were found. These will be removed next.'
    all_faulty_current_symlinks.each {|entry|
      opne 'Next removing the faulty symlink at '+entry+'.'
      remove_symlink(entry)
    }
  end
end

.check_for_invalid_entries_in_this_cookbook(i = ARGV, &block) ⇒ Object

#

RBT.check_for_invalid_entries_in_this_cookbook

This method will also check for invalid entries in the given cookbook .yml file.

#


432
433
434
435
436
437
# File 'lib/rbt/actions/individual_actions/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb', line 432

def self.check_for_invalid_entries_in_this_cookbook(
    i = ARGV,
    &block
  )
  return RBT::Action::Cookbooks::CheckForInvalidEntriesInThisCookbook.new(i, :do_not_run_yet, &block)
end

.check_for_mate_desktop_updates(i = ARGV) ⇒ Object

#

RBT.check_for_mate_desktop_updates

#


166
167
168
# File 'lib/rbt/check_for_updates/check_for_mate_desktop_updates.rb', line 166

def self.check_for_mate_desktop_updates(i = ARGV)
  RBT::Cookbooks::CheckForMateDesktopUpdates.new(i)
end

.check_if_source_directories_existObject

#

RBT.check_if_source_directories_exist

#


190
191
192
# File 'lib/rbt/cookbooks/check_for_existing_source_directories.rb', line 190

def self.check_if_source_directories_exist
  RBT::Cookbooks::CheckIfSourceDirectoriesExist.new
end

.check_this_cookbook_file_for_errors(this_file = "#{RUBY_SRC_RBT_COOKBOOKS}jasper.yml") ⇒ Object

#

RBT.check_this_cookbook_file_for_errors

The first argument should be an existing .yml file holding the dataset that may be faulty.

#


60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# File 'lib/rbt/toplevel_methods/check_this_cookbook_file_for_errors.rb', line 60

def self.check_this_cookbook_file_for_errors(
    this_file =
      "#{RUBY_SRC_RBT_COOKBOOKS}jasper.yml"
  )
  if this_file.is_a? Array
    this_file = this_file.first
  end
  if this_file.nil?
    this_file = "#{RUBY_SRC_RBT_COOKBOOKS}jasper.yml"
  end
  unless this_file.end_with?('.yml')
    unless File.exist? '.yml'
      this_file = project_yaml_dir?+'cookbooks/'+this_file+'.yml'
    end
  end
  if File.exist? this_file
    registered_cookbook_entries = RBT.registered_cookbook_entries?
    dataset = YAML.load_file(this_file)
    key = dataset.keys.first
    available_entries_from_the_cookbooks_file = dataset[key].keys
    # ===================================================================== #
    # Next, obtain the entries that were not registered. Keep in mind
    # that this Array may be entry.
    # ===================================================================== #
    these_entries_were_not_registered = available_entries_from_the_cookbooks_file.reject {|entry|
      registered_cookbook_entries.include? entry
    }
    unless these_entries_were_not_registered.empty?
      opn; e 'The file at `'+sfile(this_file)+'`'
      opn; e 'contains at the least one erroneous entry.'
      these_entries_were_not_registered.each {|this_entry_is_not_included|
        opn; e 'The entry `'+sfancy(this_entry_is_not_included)+rev+
               '` is not registered.'
      }
    else
      opn; e rev+'Everything is fine for the file '+
             sfile(this_file)+rev+'.'
      opn; e "#{rev}It has #{RBT.violet('no incorrect entries')}."
    end
  else
    opn; e "#{rev}No file exists at #{sfile(this_file)}#{rev}."
  end
end

.check_whether_this_yaml_file_has_two_url1_entries(i = ARGV) ⇒ Object

#

RBT.check_whether_this_yaml_file_has_two_url1_entries

The argument to this method should be the local file path, e. g. “foobar.yml”, as a String. Make sure that the file exists before calling this method here.

Usage example:

RBT.check_whether_this_yaml_file_has_two_url1_entries('xcbutilerrors.yml')
#


419
420
421
422
423
424
# File 'lib/rbt/actions/individual_actions/checks_and_validations/check_for_invalid_entries_in_this_cookbook.rb', line 419

def self.check_whether_this_yaml_file_has_two_url1_entries(
    i = ARGV
  )
  _ = RBT::Action::Cookbooks::CheckForInvalidEntriesInThisCookbook.new(i) { :do_not_run_yet }
  return _.check_whether_this_yaml_file_has_two_url1_entries(:default, i)
end

.chmod(this_file, permission = 0755) ⇒ Object

#

RBT.chmod (chmod tag)

Use this method to chmod a file or a directory. It also works with several files/directories passed in as Array.

#


166
167
168
169
170
171
172
173
174
175
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 166

def self.chmod(
    this_file,
    permission = 0755
  )
  if this_file.is_a? Array
    this_file.each { |file| chmod(file, permission) }
  else
    File.chmod(permission.to_i, this_file)
  end
end

.chroot_compile(this_program = ARGV, use_this_as_prefix = '/Depot/Chroot/usr/') ⇒ Object

#

RBT.chroot_compile

This method can be used to chroot-compile a given program, that is, to compile it INTO the chroot. The default prefix for that chroot environment will be /usr/. This is currently a hardcoded path.

This is mostly a “hackish” method in that I needed it to quickly compile programs into my main chroot, for when I build it up.

#


23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/rbt/toplevel_methods/chroot_and_chown_related_code.rb', line 23

def self.chroot_compile(
    this_program       = ARGV,
    use_this_as_prefix = '/Depot/Chroot/usr/' # The default prefix target.
  )
  require 'rbt/requires/require_actions.rb'
  if this_program.is_a? Array
    this_program.flatten!
    this_program.compact!
    this_program.map! {|entry|
      if entry =~ /^\d+$/ # If it is a number only, such as 1, 2, 3 etc.
        file_installation_procedure = RBT.file_installation_procedere
        if File.exist? file_installation_procedure
          dataset = YAML.load_file(file_installation_procedere)['default']
          entry = dataset[entry.to_i - 1]
        else
          no_file_exists_at(file_installation_procedure)
        end
      end
      entry
    }
  end
  # ======================================================================= #
  # Finally delegate towards class RBT::Compile.
  # ======================================================================= #
  action(:Installer, program) {{
    use_this_as_prefix: use_this_as_prefix
  }}
end

.cleanup_system_tags(i = ARGV) ⇒ Object

#

RBT.cleanup_system_tags

#


146
147
148
# File 'lib/rbt/utility_scripts/cleanup_system_tags.rb', line 146

def self.cleanup_system_tags(i = ARGV)
  RBT::CleanupSystemTags.new(i)
end

.cliner(use_this_token = '=', use_this_colour = nil, &block) ⇒ Object

#

RBT.cliner

This method accepts block-parameters such as :unicode, which will be “converted” into a corresponding horizontal line via a certain unicode block-symbol.

Usage example:

RBT.cliner('_', :steelblue)
#


41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# File 'lib/rbt/toplevel_methods/cliner.rb', line 41

def self.cliner(
    use_this_token  = '=',
    use_this_colour = nil,
    &block
  )
  case use_this_token
  # === :do_not_use_colours
  when :do_not_use_colours
    use_this_token = '='
    use_this_colour = nil
  # === :default
  when :default
    use_this_token = '='
  end
  case use_this_colour
  when :default
    use_this_colour = nil
  end
  # ======================================================================= #
  # === Handle blocks given to this method next
  # ======================================================================= #
  if block_given?
    yielded = yield
    case yielded
    when :unicode_middle_horizontal_bar
      begin
        # ================================================================= #
        # Fetch the unicode block here.
        # ================================================================= #
        require 'roebe/requires/require_unicode.rb'
        use_this_token = ::Roebe.horizontal_double_bar
      rescue LoadError
      end
    when :unicode
      begin
        # ================================================================= #
        # Fetch the unicode block here.
        # ================================================================= #
        require 'roebe/requires/require_unicode.rb'
        use_this_token = ::Roebe.return_horizontal_unicode_block
      rescue LoadError
      end
    end
  end
  if use_this_token.is_a? Hash
    if use_this_token.has_key? :use_colour
      use_this_colour = use_this_token[:use_colour]
      use_this_token = '=' # Restore the default in this case.
    end
  end
  case use_this_token
  when nil, :default
    use_this_token = '=' # <- Restore to the default in this case.
  end
  if use_this_colour
    # Support e. g. "konsole_dodgerblue" next.
    if use_this_colour.is_a?(Symbol) or
      ( use_this_colour.to_s.start_with?('konsole_dodgerblue') and
       !use_this_colour.to_s.include?('colour_') )
      # ================================================================= #
      # In this case, rewrite the colour-code a little, such as from
      # 'konsole_dodgerblue' towards 'konsole_colour_blue'.
      # ================================================================= #
      unless use_this_colour.is_a? Symbol
        use_this_colour = 'konsole_colour_'+use_this_colour.to_s.split('_').last
      end
    end
    e ::Colours.send(use_this_colour, (use_this_token * 80))
  else
    if use_this_token.is_a? Symbol
      if ::Colours.respond_to?(use_this_token)
        use_this_token = ::Colours.send(use_this_token, '=')
      else
        use_this_token = ::Colours::HtmlColoursMethods.send(use_this_token, '=')
      end
    end
    e (use_this_token * 80)
  end 
end

.cmake(i = ARGV, &block) ⇒ Object

#

RBT.cmake

#


447
448
449
# File 'lib/rbt/cmake/cmake.rb', line 447

def self.cmake(i = ARGV, &block)
  RBT::Cmake.new(i, &block)
end

.colour_make(&block) ⇒ Object

#

RBT.colour_make

#


708
709
710
# File 'lib/rbt/make/make.rb', line 708

def self.colour_make(&block)
  RBT::Make.new(&block).run
end

.colour_make_install(i = nil, run_already = true, &block) ⇒ Object

#

RBT.colour_make_install

#


96
97
98
99
100
101
102
# File 'lib/rbt/make/colour_make_install.rb', line 96

def self.colour_make_install(
    i           = nil,
    run_already = true,
    &block
  )
  RBT::ColourMakeInstall.new(i, run_already, &block)
end

.colourize_parser(i = ARGV) ⇒ Object

#

RBT.colourize_parser

#


888
889
890
# File 'lib/rbt/misc/colourize_parser.rb', line 888

def self.colourize_parser(i = ARGV)
  RBT::ColourizeParser.new(i)
end

.commandline_options?Boolean

#

RBT.commandline_options?

#

Returns:

  • (Boolean)


24
25
26
# File 'lib/rbt/commandline/commandline.rb', line 24

def self.commandline_options?
  @commandline_options
end

.compile(this_program = nil, optional_arguments = nil) ⇒ Object

#

RBT.compile

The first argument should be the name of the program that you wish to compile, such as :htop or ‘htop’.

#


13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
# File 'lib/rbt/actions/individual_actions/software_manager/misc.rb', line 13234

def self.compile(
    this_program       = nil,
    optional_arguments = nil
  )
  _ = RBT::Action::SoftwareManager.new(this_program, :do_not_run_already)
  # ========================================================================= #
  # Pass any extra arguments into the menu() interface.
  # ========================================================================= #
  _.menu(optional_arguments) if optional_arguments
  _.run
end

.compile_strategies?Boolean

#

RBT.compile_strategies?

#

Returns:

  • (Boolean)


318
319
320
# File 'lib/rbt/actions/individual_actions/statistics/compile_strategies.rb', line 318

def self.compile_strategies?
  RBT::Action::Statistics::CompileStrategies.new
end

.compile_these_programs?Boolean

#

RBT.compile_these_programs?

#

Returns:

  • (Boolean)


99
100
101
# File 'lib/rbt/toplevel_methods/compile_these_programs.rb', line 99

def self.compile_these_programs?
  @compile_these_programs
end

.compile_via_appdir_prefix_without_symlinking(i = ARGV) ⇒ Object

#

RBT.compile_via_appdir_prefix_without_symlinking

This method will compile via a versioned AppDir approach, but will not symlink after compilation has finished.

#


15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/rbt/toplevel_methods/compile_via_appdir_prefix_without_symlinking.rb', line 15

def self.compile_via_appdir_prefix_without_symlinking(i = ARGV)
  require 'rbt/requires/require_actions.rb'
  i = [i].flatten.compact
  i.each {|this_program|
    _ = actions(:Installer, this_program) {{
      run_already: :do_not_run_yet,
      symlink_after_compilation_has_finished: false
    }}
    _.do_use_an_appdir_prefix
    _.run
  }
end

.compile_via_environment_variable_as_prefix(compile_these_programs = ARGV, use_this_environment_variable = :default) ⇒ Object

#

RBT.compile_via_environment_variable_as_prefix

#


165
166
167
168
169
170
171
172
# File 'lib/rbt/utility_scripts/compile_via_environment_variable_as_prefix.rb', line 165

def self.compile_via_environment_variable_as_prefix(
    compile_these_programs        = ARGV,
    use_this_environment_variable = :default
  )
  RBT::CompileViaEnvironmentVariableAsPrefix.new(
    compile_these_programs, use_this_environment_variable
  )
end

.configuration?Boolean

#

RBT.configuration?

Query method over the configuration-object.

#

Returns:

  • (Boolean)


33
34
35
# File 'lib/rbt/configuration/configuration_instance_variable.rb', line 33

def self.configuration?
  @configuration
end

.configuration_directory?Boolean

#

RBT.configuration_directory?

#

Returns:

  • (Boolean)


37
38
39
# File 'lib/rbt/constants/configuration_directory.rb', line 37

def self.configuration_directory?
  @configuration_directory
end

.configuration_has_been_initialized_already?Boolean

#

RBT.configuration_has_been_initialized_already?

#

Returns:

  • (Boolean)


140
141
142
# File 'lib/rbt/configuration/initialize_configuration.rb', line 140

def self.configuration_has_been_initialized_already?
  !@configuration.nil?
end

.configure_appdir_prefix(i = return_pwd) ⇒ Object

#

RBT.configure_appdir_prefix

This method will return the AppDir prefix, based on the given input, which defaults to the current working directory.

#


53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/rbt/toplevel_methods/configure_appdir_prefix.rb', line 53

def self.configure_appdir_prefix(
    i = return_pwd
  )
  i = i.first if i.is_a? Array
  if i.nil? or i.empty?
    i = return_pwd
  end
  target = File.basename(i)
  _ = './configure --prefix='+
      return_appdir_prefix(target)
  e _
end

.configure_has_a_higher_priority_than_meson?(this_file = RBT.file_build_system_priorities) ⇒ Boolean

#

RBT.configure_has_a_higher_priority_than_meson?

This method will return true if “configure” has a higher priority than “meson”. A yaml file keeps track of these priorities, so if you wish to change the priority, you have to modify the content of that .yml file.

The name of that yaml file:

build_systems_priorities.yml
#

Returns:

  • (Boolean)


29
30
31
32
33
34
# File 'lib/rbt/toplevel_methods/configure_has_a_higher_priority_than_meson.rb', line 29

def self.configure_has_a_higher_priority_than_meson?(
    this_file = RBT.file_build_system_priorities
  )
  array = YAML.load_file(this_file)
  array.index('configure') < array.index('meson')
end

.consider_changing_the_tab_title(i = return_program_name_then_hyphen_then_the_program_version, shall_we_rename_the_tab_title = :default_behaviour) ⇒ Object

#

RBT.consider_changing_the_tab_title (shell tag)

Use this method to change the title of a tab in a Terminal like Bash.

#


469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
# File 'lib/rbt/toplevel_methods/toplevel_methods.rb', line 469

def self.consider_changing_the_tab_title(
    i                             = return_program_name_then_hyphen_then_the_program_version,
    shall_we_rename_the_tab_title = :default_behaviour # By default we will rename the tab title.
  )
  if i.is_a?(Array) and (i.size == 2)
    shall_we_rename_the_tab_title = i.last
    i = i.first
  end
  case shall_we_rename_the_tab_title
  # ======================================================================= #
  # === :do_rename_the_tab
  # ======================================================================= #
  when :do_rename_the_tab,
       :do_rename,
       :default,
       :default_behaviour,
       nil
    shall_we_rename_the_tab_title = true
  end
  # ======================================================================= #
  # First check whether we ought to rename the tab title or not.
  # ======================================================================= #
  if shall_we_rename_the_tab_title
    case i
    # ===================================================================== #
    # === :default
    # ===================================================================== #
    when :default
      # This is the current hardcoded default. May change at a later time.
      i = return_program_name_then_hyphen_then_the_program_version
    # ===================================================================== #
    # === :clear
    # ===================================================================== #
    when :clear
      i = '.'
    end
    # ===================================================================== #
    # Query whether Roebe is available or not.
    # ===================================================================== #
    if Object.const_defined?(:Roebe) and
       shall_we_rename_the_tab_title # Only use it if the user enabled this.
      if Roebe.respond_to? :rename_konsole_title_to
        # ================================================================= #
        # Rename the konsole-title here.
        # ================================================================= #
        Roebe.rename_konsole_title_to(i, :be_quiet)
      else
        e "The namespace #{sfancy('Roebe')} does not respond to the method"
        e 'rename_konsole_title_to()'
        e 'Either the functionality is missing - or something has not'
        e 'been properly required. Either way, we can not rename the'
        e 'konsole tab for now.'
      end
    end
  end unless i.empty?
end

.convert_date_format(i = ARGV) ⇒ Object

#

RBT.convert_date_format

#


180
181
182
# File 'lib/rbt/cookbooks/convert_date_format.rb', line 180

def self.convert_date_format(i = ARGV)
  RBT::Cookbooks::ConvertDateFormat.new(i)
end

.convert_global_env(i) ⇒ Object

#

RBT.convert_global_env

#


12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/rbt/toplevel_methods/convert_global_env.rb', line 12

def self.convert_global_env(i)
  unless Object.const_defined? :ConvertGlobalEnv
    begin
      require 'convert_global_env'
    rescue LoadError; end
  end
  i = i.first if i.is_a? Array
  if Object.const_defined? :ConvertGlobalEnv and
     i.include?('$') # Assume an ENV variable here.
    i = ConvertGlobalEnv.convert(i.dup).dup
  end
  return i
end

.cookbook_aliasesObject

#

RBT.cookbook_aliases

This will return the registered/available keys, in a sorted manner.

This will have about 331 entries (as of August 2018).

#


58
59
60
# File 'lib/rbt/aliases/aliases.rb', line 58

def self.cookbook_aliases
  COOKBOOK_ALIASES.keys.sort
end

.cookbook_aliases?Boolean

#

RBT.cookbook_aliases?

#

Returns:

  • (Boolean)


47
48
49
# File 'lib/rbt/aliases/aliases.rb', line 47

def self.cookbook_aliases?
  COOKBOOK_ALIASES
end

.cookbook_directory?Boolean

#

RBT.cookbook_directory?

Provide a pointer, through this query method, towards the directory where the individual cookbooks are kept.

#

Returns:

  • (Boolean)


36
37
38
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 36

def self.cookbook_directory?
  @cookbook_directory
end

.copy_recursively(what, where_to = '/usr/', be_verbose = false) ⇒ Object

#

RBT.copy_recursively

We can use a call to system(), or the pure ruby version, in order to recursively copy files. But you may not enough information if the pure ruby version is used.

“noop” means “No Op” aka “No Operation”. “No Op” is a dummy task that always completes successfully. It is most often used in a task whose role is to delete files.

The method signature upstream is:

cp_r(src, dest, preserve: nil, noop: nil, verbose: nil, dereference_root: true, remove_destination: nil) (mod_func)
#


1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 1326

def self.copy_recursively(
    what,
    where_to   = '/usr/',
    be_verbose = false
  )
  if what.is_a? String
    what << '.' unless what.end_with? '.'
  end
  begin
    ::FileUtils.cp_r(
      what,
      where_to
    )#,
    #  nil,       # for preserve
    #  nil,       # for noop
    #  be_verbose # for verbose
    #)
  rescue Exception => error
    pp error
  end
end

.copy_these_archives(i = ARGV) ⇒ Object

#

RBT.copy_these_archives

#


126
127
128
# File 'lib/rbt/utility_scripts/copy_these_archives.rb', line 126

def self.copy_these_archives(i = ARGV)
  RBT::CopyTheseArchives.new(i)
end

.cornflowerblue(i = '', use_colours = use_colours? ) ⇒ Object

#

RBT.cornflowerblue

#


36
37
38
39
40
41
42
# File 'lib/rbt/colours/html_colours.rb', line 36

def self.cornflowerblue(
    i           = '',
    use_colours = use_colours?
  )
  return COLOURS::HtmlColoursMethods.cornflowerblue(i) if use_colours
  return i
end

.create_app_dir_skeleton(i = ARGV, &block) ⇒ Object

#

RBT.create_app_dir_skeleton

#


813
814
815
816
817
818
# File 'lib/rbt/actions/individual_actions/create_app_dir_skeleton/create_app_dir_skeleton.rb', line 813

def self.create_app_dir_skeleton(
    i = ARGV,
    &block
  )
  return RBT::Action::CreateAppDirSkeleton.new(i, &block)
end

.create_cookbook_yaml_file(i = 'php') ⇒ Object

#

RBT.create_cookbook_yaml_file

#


544
545
546
# File 'lib/rbt/cookbooks/create_cookbook_yaml_file/create_cookbook_yaml_file.rb', line 544

def self.create_cookbook_yaml_file(i = 'php')
  RBT::Cookbooks::CreateCookbookYamlFile.new(i)
end

.create_directory(where = '/Depot/Packages/', use_this_mode = 0755, be_verbose = :be_quiet, do_use_opnn = true, &block) ⇒ Object

#

RBT.create_directory

Internal Wrapper to create a directory.

We will also check if a Dir exists before actually creating it. This is the method of choice for creating a directory. Use it for all the RBT scripts, whenever you need to create a directory.

#


391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
# File 'lib/rbt/toplevel_methods/files_and_directories_related_methods.rb', line 391

def self.create_directory(
    where         = '/Depot/Packages/',
    use_this_mode = 0755,
    be_verbose    = :be_quiet,
    do_use_opnn   = true,
    &block
  )
  _yielded = nil # Not currently in use as of Dec 2022.
  if block_given?
    _yielded = yield
  end
  case use_this_mode
  when :be_verbose
    be_verbose = :be_verbose
    use_this_mode = :default
  end
  if where.is_a? Array
    where.each {|entry|
      create_directory(
        entry, use_this_mode, be_verbose, do_use_opnn
      )
    }
  else
    if File.directory? where
      unless where.end_with? '/' # Append a /.
        where = where.dup if where.frozen?
        where << '/'
      end
    end
    case use_this_mode
    when :default # Default value is 0755.
      use_this_mode = 0755
    when Hash
      if use_this_mode.has_key? :verbosity
        use_this_mode = use_this_mode.delete(:verbosity)
      end
      use_this_mode = 0755
    when '', true
      use_this_mode = 0755
    when :be_verbose
      use_this_mode = 0755
      be_verbose = true
    end
    # ===================================================================== #
    # Handle special symbols given to be_verbose.
    # ===================================================================== #
    case be_verbose
    when Hash
      # =================================================================== #
      # === :verbosity
      # =================================================================== #
      if be_verbose.has_key? :verbosity
        be_verbose = be_verbose.delete(:verbosity)
      end
    # ===================================================================== #
    # === :be_quiet
    # ===================================================================== #
    when :be_quiet,
         :be_silent
      be_verbose = false
    end
    case do_use_opnn
    when :do_not_use_opn,
         :do_not_use_opnn
      do_use_opnn = false
    end
    if File.exist? where
      if be_verbose
        opnn if do_use_opnn
        e "Directory `#{sdir(where)}` already exists, thus"
        opnn if do_use_opnn
        e 'skipping creating a new one.'
      end
    else
      if where
        if be_verbose
          opnn if do_use_opnn
          e "Creating the directory `#{sdir(where)}` next."
        end
        unless File.directory? where
          options_hash = {
            mode: use_this_mode, verbose: false
          }
          # =============================================================== #
          # The variable where can be a String such as 
          # "/home/Programs/Tepl/Current/yaml/". We have
          # to keep in mind that the mkdir-part may fail,
          # so a rescue clause has to be used.
          # =============================================================== #
          begin
            FileUtils.mkdir_p(where, **options_hash)
          rescue Errno::EEXIST
            e "The directory `#{sdir(where)}` can not be created"
            e 'as some target, or an incorrect symlink, '\
              'already exists.' 
          end
          # if be_verbose
          #   opnn if do_use_opnn
          #   e "Can not write into the directory `#{sdir(where)}` "\
          #     "due to insufficient permissions."
          # end
        end
      else
        opnn if do_use_opnn; e 'No directory was given.'
      end
    end
  end
end

.create_gobolinux_recipe(i = ARGV, &block) ⇒ Object

#

RBT.create_gobolinux_recipe

Easier module-method instantiation.

#


457
458
459
460
461
462
# File 'lib/rbt/linux/gobolinux/create_recipe.rb', line 457

def self.create_gobolinux_recipe(
    i = ARGV,
    &block
  )
  RBT::Linux::Gobolinux::CreateRecipe.new(i, &block)
end

.create_html_page_for_these_programs(array = ARGV) ⇒ Object

#

RBT.create_html_page_for_these_programs

This method works on an Array as its input. This Array should be about programs that you want to see an auto-generated webpage containing some information about this program.

#


81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# File 'lib/rbt/toplevel_methods/html.rb', line 81

def self.create_html_page_for_these_programs(array = ARGV)
  if array.is_a?(String) and
     array.start_with?(':')
    array = array.to_s.delete(':').to_sym
  end
  if array.is_a? Symbol
    require 'rbt/utility_scripts/search_for_tags/search_for_tags.rb'
    # ===================================================================== #
    # Handle special cases such as KDE5.
    # ===================================================================== #
    case array # case tag
    # ===================================================================== #
    # === cookbooks --create_html_page_for_these_programs=:kde5
    # ===================================================================== #
    when :kde, :kde5
      array = RBT.return_all_programs_that_match_this_tag(:kde5)
    # ===================================================================== #
    # === cookbooks --create_html_page_for_these_programs=:kde5_toolchain
    # ===================================================================== #
    when :kde5_toolchain
      # =================================================================== #
      # This variant here should be equivalent to LFS/BLFS, in the proper
      # order. This thus requires a yaml file.
      # =================================================================== #
      dataset = load_yaml(RBT.file_cookbook_chained_programs)
      array = dataset['kde5_foundation']+
              dataset['kde5_plasma']+
              dataset['kde5_applications']+
              dataset['kde5_porting_aids']
      if array.is_a? String # Well ... :)
        array.delete!(' ')
        array = array.split(',')
      end
    end
  end
  if array.is_a? Array
    if array.first.is_a?(String) and array.first.include?(',') # <- Input such as ["php,kio,ruby"]
      array = array.first.split(',')
    end
    array.flatten!
    if array.size > 20
      opn; e 'More than 20 entries were given (exactly '+
             sfancy(array.size.to_s)+'). This may take a while.'
    end
    @html_page_content = "<html>".dup
    begin
      require 'cyberweb'
      @html_page_content << Cyberweb.return_unicode_meta
    rescue LoadError; end
    @html_page_content << "<head><title>HTML Pages for programs</title>"\
                          "<style>pre { font-size: 1.4em; }</style>"\
                          "</head><body><hr>\n".dup # Reset again.
    array.each_with_index {|this_program, index| index += 1
      # =================================================================== #
      # For each program, we do the same actions:
      #
      #   (1) Obtain the dataset via Cookbooks::Cookbook.new() OR
      #       from the expanded directory containing all yaml files.
      #   (2) 
      # =================================================================== #
      if File.directory?(RBT.directory_expanded_cookbooks) and
         File.exist?(target_file = "#{RBT.directory_expanded_cookbooks}#{this_program}.yml")
        dataset = load_yaml(target_file)
        remote_url  = dataset['url1'.to_sym]
        description = dataset['raw_description'.to_sym]
        licence     = dataset['licence'.to_sym]
        homepage    = dataset['homepage'.to_sym].to_s
        binaries    = dataset['binaries'.to_sym]
        libraries   = dataset['libraries'.to_sym]
      else
        dataset = action(:SanitizeCookbook, this_program)