rbt 0.16.12 → 0.16.13
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rbt might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/rbt/actions/actions.rb +18 -17
- data/lib/rbt/actions/individual_actions/installer/aggregate.rb +111 -112
- data/lib/rbt/{utility_scripts → actions/individual_actions/show_manual_steps}/show_manual_steps.rb +12 -15
- data/lib/rbt/actions/individual_actions/software_manager/actions.rb +72 -0
- data/lib/rbt/actions/individual_actions/software_manager/menu.rb +60 -59
- data/lib/rbt/actions/individual_actions/software_manager/misc.rb +1 -420
- data/lib/rbt/actions/individual_actions/software_manager/query_related_methods.rb +44 -7
- data/lib/rbt/actions/individual_actions/software_manager/setters.rb +332 -0
- data/lib/rbt/actions/individual_actions/software_manager/software_manager.rb +1 -0
- data/lib/rbt/shell/shell_script_containing_the_program_versions.sh +11420 -5
- data/lib/rbt/toplevel_methods/meson.rb +13 -11
- data/lib/rbt/version/version.rb +2 -2
- data/lib/rbt/yaml/cookbooks/extracmakemodules.yml +1 -1
- data/lib/rbt/yaml/cookbooks/libproxy.yml +1 -1
- data/lib/rbt/yaml/expanded_cookbooks/extracmakemodules.yml +1 -1
- data/lib/rbt/yaml/expanded_cookbooks/libproxy.yml +1 -1
- data/lib/rbt/yaml/programs_version/the_expanded_coobkook_dataset_was_last_updated_on_this_day.yml +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35235690bbf8442083fabf545236ba3295c12ea5c52c325c82a3807f8df67e51
|
4
|
+
data.tar.gz: e3e598dc3eb898558155b26abd0ce45b2a424828f1da84d8e706559ce70ac15f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c26486d7c7b9798ec1b24abc4833839e3ea77cf252702374ebd1730525037e9713ff11e38d5b18f672939ba7205dda09c1265f05c096d74a2a503462034670b9
|
7
|
+
data.tar.gz: 11c6044995974aab323c5243c3f8d42e1bb28439baa0520d866b23eb4214e49ed822ba84faf4834e8c281f56f1fb805b93323d9e0872114ae3794f85496976be
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![forthebadge](https://forthebadge.com/images/badges/made-with-ruby.svg)](https://www.ruby-lang.org/en/)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/rbt.svg)](https://badge.fury.io/rb/rbt)
|
7
7
|
|
8
|
-
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">
|
8
|
+
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">03.04.2024</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">00:37:58</span> o'clock.
|
9
9
|
|
10
10
|
## Introduction to the "Ruby Build Tools" Project (RBT)
|
11
11
|
|
data/lib/rbt/actions/actions.rb
CHANGED
@@ -39,6 +39,24 @@ module RBT
|
|
39
39
|
# ======================================================================= #
|
40
40
|
case action_that_is_desired # (case tag)
|
41
41
|
# ======================================================================= #
|
42
|
+
# === :show_manual_steps
|
43
|
+
#
|
44
|
+
# Commandline usage example:
|
45
|
+
#
|
46
|
+
# raction show_manual_steps glibc
|
47
|
+
#
|
48
|
+
# ======================================================================= #
|
49
|
+
when :show_manual_steps,
|
50
|
+
:ShowManualSteps
|
51
|
+
require 'rbt/actions/individual_actions/show_manual_steps/show_manual_steps.rb'
|
52
|
+
RBT.show_manual_steps(_)
|
53
|
+
# ======================================================================= #
|
54
|
+
# === :run_meson_configure_step
|
55
|
+
# ======================================================================= #
|
56
|
+
when :run_meson_configure_step
|
57
|
+
require 'rbt/toplevel_methods/meson.rb'
|
58
|
+
return RBT.run_meson_configure_step(_, &block)
|
59
|
+
# ======================================================================= #
|
42
60
|
# === :prefix_object
|
43
61
|
# ======================================================================= #
|
44
62
|
when :prefix_object,
|
@@ -186,12 +204,6 @@ module RBT
|
|
186
204
|
require 'rbt/toplevel_methods/toplevel_methods.rb'
|
187
205
|
RBT.consider_changing_the_tab_title(_, &block)
|
188
206
|
# ======================================================================= #
|
189
|
-
# === :run_meson_configure_step
|
190
|
-
# ======================================================================= #
|
191
|
-
when :run_meson_configure_step
|
192
|
-
require 'rbt/toplevel_methods/meson.rb'
|
193
|
-
return RBT.run_meson_configure_step(_, &block)
|
194
|
-
# ======================================================================= #
|
195
207
|
# === :cmake
|
196
208
|
# ======================================================================= #
|
197
209
|
when :cmake,
|
@@ -769,17 +781,6 @@ module RBT
|
|
769
781
|
require 'rbt/utility_scripts/remove_empty_directories.rb'
|
770
782
|
RBT.remove_empty_directories(_)
|
771
783
|
# ======================================================================= #
|
772
|
-
# === :show_manual_steps
|
773
|
-
#
|
774
|
-
# Commandline usage example:
|
775
|
-
#
|
776
|
-
# raction show_manual_steps glibc
|
777
|
-
#
|
778
|
-
# ======================================================================= #
|
779
|
-
when :show_manual_steps
|
780
|
-
require 'rbt/utility_scripts/show_manual_steps.rb'
|
781
|
-
RBT.show_manual_steps(_)
|
782
|
-
# ======================================================================= #
|
783
784
|
# === :chain_compile
|
784
785
|
#
|
785
786
|
# Invocation example:
|
@@ -1,5 +1,116 @@
|
|
1
1
|
class OBSOLETE
|
2
2
|
|
3
|
+
# ========================================================================= #
|
4
|
+
# === invoke_extracter
|
5
|
+
#
|
6
|
+
# Delegate towards class Extracter next.
|
7
|
+
# ========================================================================= #
|
8
|
+
def invoke_extracter(
|
9
|
+
i = program_path?,
|
10
|
+
extract_to_this_directory = extract_where_to?,
|
11
|
+
keep_the_old_directory_if_it_exists = false
|
12
|
+
)
|
13
|
+
|
14
|
+
case extract_to_this_directory
|
15
|
+
when nil
|
16
|
+
extract_to_this_directory = will_be_extracted_towards?
|
17
|
+
@internal_hash[:extract_to_this_directory_as_specified_by_the_user] =
|
18
|
+
extract_to_this_directory
|
19
|
+
set_extract_to_this_directory(extract_to_this_directory)
|
20
|
+
end
|
21
|
+
yielded = nil
|
22
|
+
case keep_the_old_directory_if_it_exists # case tag.
|
23
|
+
# ======================================================================= #
|
24
|
+
# === :do_keep_the_old_directory_if_it_exists,
|
25
|
+
# ======================================================================= #
|
26
|
+
when :do_keep_the_old_directory_if_it_exists,
|
27
|
+
:keep_the_old_directory_if_it_exists
|
28
|
+
keep_the_old_directory_if_it_exists = true
|
29
|
+
end
|
30
|
+
# ======================================================================= #
|
31
|
+
# === Handle blocks given to this method next:
|
32
|
+
# ======================================================================= #
|
33
|
+
if block_given?
|
34
|
+
yielded = yield
|
35
|
+
case yielded
|
36
|
+
# ===================================================================== #
|
37
|
+
# === :keep_the_old_directory_if_it_exists
|
38
|
+
# ===================================================================== #
|
39
|
+
when :keep_the_old_directory_if_it_exists
|
40
|
+
keep_the_old_directory_if_it_exists = true
|
41
|
+
else
|
42
|
+
# =================================================================== #
|
43
|
+
# === Handle Hashes next
|
44
|
+
# =================================================================== #
|
45
|
+
if yielded.is_a? Hash
|
46
|
+
# ================================================================= #
|
47
|
+
# === :append_to_the_commandline
|
48
|
+
# ================================================================= #
|
49
|
+
if yielded.has_key? :append_to_the_commandline
|
50
|
+
append_to_the_commandline << yielded[:append_to_the_commandline]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
unless skip_extracting?
|
56
|
+
case extract_to_this_directory
|
57
|
+
# ===================================================================== #
|
58
|
+
# === :default
|
59
|
+
# ===================================================================== #
|
60
|
+
when :default
|
61
|
+
extract_to_this_directory = will_be_extracted_towards?
|
62
|
+
end
|
63
|
+
# ===================================================================== #
|
64
|
+
# Remove the extracted directory if it exists next. This will,
|
65
|
+
# however had, NOT be done if we extract to another target
|
66
|
+
# directory, such as when issuing a command like
|
67
|
+
# "ry htop --extract-to=/opt/test".
|
68
|
+
# ===================================================================== #
|
69
|
+
# possibly_existing_old_extracted_archive = cookbooks_dataset_extracted_towards?
|
70
|
+
# unless possibly_existing_old_extracted_archive.include? extract_to?
|
71
|
+
# =================================================================== #
|
72
|
+
# In this case we reasonably assume that the user has NOT given a
|
73
|
+
# --extract-to value.
|
74
|
+
#
|
75
|
+
# Keep in mind that the user may specify another temp-directory,
|
76
|
+
# which explains the check for user-input.
|
77
|
+
# =================================================================== #
|
78
|
+
if cookbooks_for? and !keep_the_old_directory_if_it_exists
|
79
|
+
_ = will_be_extracted_towards?
|
80
|
+
if @internal_hash.has_key?(:extract_to_this_directory_as_specified_by_the_user) and
|
81
|
+
@internal_hash[:extract_to_this_directory_as_specified_by_the_user]
|
82
|
+
_ = @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
|
83
|
+
end
|
84
|
+
unless (_.squeeze('/').strip == '/') # Prevent erroneous removal of /.
|
85
|
+
if File.directory?(_)
|
86
|
+
_ = _.dup if _.frozen?
|
87
|
+
if (_ == rbt_log_dir?)
|
88
|
+
opnerror 'A problem was encountered, but this should never happen.'
|
89
|
+
opnerror 'RBT::Action::SoftwareManager tried to remove the base directory at '+
|
90
|
+
sdir(rbt_log_dir?)
|
91
|
+
opnerror 'which was the same as the passed directory `'+sdir(_)+'`.'
|
92
|
+
e
|
93
|
+
opnerror 'Something must be wrong in the information-chain, such as a'
|
94
|
+
opnerror 'faulty .yml file. Please review the information shown above'
|
95
|
+
opnerror 'and make sure that the used .yml file is correct.'
|
96
|
+
e
|
97
|
+
exit_program { :exit_no_matter_what }
|
98
|
+
else
|
99
|
+
_.strip!
|
100
|
+
_.squeeze!('/')
|
101
|
+
# =========================================================== #
|
102
|
+
# Notify the user that we will remove the old directory next.
|
103
|
+
# =========================================================== #
|
104
|
+
notify_the_user_that_this_old_directory_will_be_removed_next(_)
|
105
|
+
remove_directory(_)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
# end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
3
114
|
# ========================================================================= #
|
4
115
|
# === run_system_or_ioparser_command (iopen tag)
|
5
116
|
#
|
@@ -363,7 +474,6 @@ class OBSOLETE
|
|
363
474
|
alias determine_which_programs_to_compile set_install_these_programs # === determine_which_programs_to_compile
|
364
475
|
alias set_work_on_this_program set_install_these_programs # === set_work_on_this_program
|
365
476
|
|
366
|
-
|
367
477
|
# ========================================================================= #
|
368
478
|
# === parse_this_line_obtained_via_io_popen (io-open tag, sys tag)
|
369
479
|
#
|
@@ -627,115 +737,4 @@ class OBSOLETE
|
|
627
737
|
end; alias run_make_command run_make # === run_make_command
|
628
738
|
alias considering_running_make_command_via_system run_make # === considering_running_make_command_via_system
|
629
739
|
|
630
|
-
# ========================================================================= #
|
631
|
-
# === invoke_extracter
|
632
|
-
#
|
633
|
-
# Delegate towards class Extracter next.
|
634
|
-
# ========================================================================= #
|
635
|
-
def invoke_extracter(
|
636
|
-
i = program_path?,
|
637
|
-
extract_to_this_directory = extract_where_to?,
|
638
|
-
keep_the_old_directory_if_it_exists = false
|
639
|
-
)
|
640
|
-
|
641
|
-
case extract_to_this_directory
|
642
|
-
when nil
|
643
|
-
extract_to_this_directory = will_be_extracted_towards?
|
644
|
-
@internal_hash[:extract_to_this_directory_as_specified_by_the_user] =
|
645
|
-
extract_to_this_directory
|
646
|
-
set_extract_to_this_directory(extract_to_this_directory)
|
647
|
-
end
|
648
|
-
yielded = nil
|
649
|
-
case keep_the_old_directory_if_it_exists # case tag.
|
650
|
-
# ======================================================================= #
|
651
|
-
# === :do_keep_the_old_directory_if_it_exists,
|
652
|
-
# ======================================================================= #
|
653
|
-
when :do_keep_the_old_directory_if_it_exists,
|
654
|
-
:keep_the_old_directory_if_it_exists
|
655
|
-
keep_the_old_directory_if_it_exists = true
|
656
|
-
end
|
657
|
-
# ======================================================================= #
|
658
|
-
# === Handle blocks given to this method next:
|
659
|
-
# ======================================================================= #
|
660
|
-
if block_given?
|
661
|
-
yielded = yield
|
662
|
-
case yielded
|
663
|
-
# ===================================================================== #
|
664
|
-
# === :keep_the_old_directory_if_it_exists
|
665
|
-
# ===================================================================== #
|
666
|
-
when :keep_the_old_directory_if_it_exists
|
667
|
-
keep_the_old_directory_if_it_exists = true
|
668
|
-
else
|
669
|
-
# =================================================================== #
|
670
|
-
# === Handle Hashes next
|
671
|
-
# =================================================================== #
|
672
|
-
if yielded.is_a? Hash
|
673
|
-
# ================================================================= #
|
674
|
-
# === :append_to_the_commandline
|
675
|
-
# ================================================================= #
|
676
|
-
if yielded.has_key? :append_to_the_commandline
|
677
|
-
append_to_the_commandline << yielded[:append_to_the_commandline]
|
678
|
-
end
|
679
|
-
end
|
680
|
-
end
|
681
|
-
end
|
682
|
-
unless skip_extracting?
|
683
|
-
case extract_to_this_directory
|
684
|
-
# ===================================================================== #
|
685
|
-
# === :default
|
686
|
-
# ===================================================================== #
|
687
|
-
when :default
|
688
|
-
extract_to_this_directory = will_be_extracted_towards?
|
689
|
-
end
|
690
|
-
# ===================================================================== #
|
691
|
-
# Remove the extracted directory if it exists next. This will,
|
692
|
-
# however had, NOT be done if we extract to another target
|
693
|
-
# directory, such as when issuing a command like
|
694
|
-
# "ry htop --extract-to=/opt/test".
|
695
|
-
# ===================================================================== #
|
696
|
-
# possibly_existing_old_extracted_archive = cookbooks_dataset_extracted_towards?
|
697
|
-
# unless possibly_existing_old_extracted_archive.include? extract_to?
|
698
|
-
# =================================================================== #
|
699
|
-
# In this case we reasonably assume that the user has NOT given a
|
700
|
-
# --extract-to value.
|
701
|
-
#
|
702
|
-
# Keep in mind that the user may specify another temp-directory,
|
703
|
-
# which explains the check for user-input.
|
704
|
-
# =================================================================== #
|
705
|
-
if cookbooks_for? and !keep_the_old_directory_if_it_exists
|
706
|
-
_ = will_be_extracted_towards?
|
707
|
-
if @internal_hash.has_key?(:extract_to_this_directory_as_specified_by_the_user) and
|
708
|
-
@internal_hash[:extract_to_this_directory_as_specified_by_the_user]
|
709
|
-
_ = @internal_hash[:extract_to_this_directory_as_specified_by_the_user]
|
710
|
-
end
|
711
|
-
unless (_.squeeze('/').strip == '/') # Prevent erroneous removal of /.
|
712
|
-
if File.directory?(_)
|
713
|
-
_ = _.dup if _.frozen?
|
714
|
-
if (_ == rbt_log_dir?)
|
715
|
-
opnerror 'A problem was encountered, but this should never happen.'
|
716
|
-
opnerror 'RBT::Action::SoftwareManager tried to remove the base directory at '+
|
717
|
-
sdir(rbt_log_dir?)
|
718
|
-
opnerror 'which was the same as the passed directory `'+sdir(_)+'`.'
|
719
|
-
e
|
720
|
-
opnerror 'Something must be wrong in the information-chain, such as a'
|
721
|
-
opnerror 'faulty .yml file. Please review the information shown above'
|
722
|
-
opnerror 'and make sure that the used .yml file is correct.'
|
723
|
-
e
|
724
|
-
exit_program { :exit_no_matter_what }
|
725
|
-
else
|
726
|
-
_.strip!
|
727
|
-
_.squeeze!('/')
|
728
|
-
# =========================================================== #
|
729
|
-
# Notify the user that we will remove the old directory next.
|
730
|
-
# =========================================================== #
|
731
|
-
notify_the_user_that_this_old_directory_will_be_removed_next(_)
|
732
|
-
remove_directory(_)
|
733
|
-
end
|
734
|
-
end
|
735
|
-
end
|
736
|
-
end
|
737
|
-
# end
|
738
|
-
end
|
739
|
-
end
|
740
|
-
|
741
740
|
end
|
data/lib/rbt/{utility_scripts → actions/individual_actions/show_manual_steps}/show_manual_steps.rb
RENAMED
@@ -2,27 +2,24 @@
|
|
2
2
|
# Encoding: UTF-8
|
3
3
|
# frozen_string_literal: true
|
4
4
|
# =========================================================================== #
|
5
|
-
# === RBT::ShowManualSteps
|
5
|
+
# === RBT::Action::ShowManualSteps
|
6
6
|
#
|
7
7
|
# This small class will simply show the manual steps of a given program.
|
8
8
|
#
|
9
9
|
# In order for this to work, there has to be a manual_steps: entry in
|
10
10
|
# the corresponding .yml file.
|
11
|
-
#
|
12
|
-
# Usage example:
|
13
|
-
#
|
14
|
-
# RBT::ShowManualSteps.new(ARGV)
|
15
|
-
#
|
16
11
|
# =========================================================================== #
|
17
|
-
# require 'rbt/
|
18
|
-
# RBT::ShowManualSteps.new(ARGV)
|
19
|
-
# RBT.show_manual_steps
|
12
|
+
# require 'rbt/actions/individual_actions/show_manual_steps/show_manual_steps.rb'
|
13
|
+
# RBT::Action::ShowManualSteps.new(ARGV)
|
14
|
+
# RBT.show_manual_steps(ARGV)
|
20
15
|
# =========================================================================== #
|
21
|
-
require 'rbt/
|
16
|
+
require 'rbt/actions/action.rb'
|
22
17
|
|
23
18
|
module RBT
|
24
19
|
|
25
|
-
class
|
20
|
+
class Action
|
21
|
+
|
22
|
+
class ShowManualSteps < RBT::Action # === RBT::Action::ShowManualSteps
|
26
23
|
|
27
24
|
require 'rbt/requires/require_the_cookbook_class.rb'
|
28
25
|
|
@@ -92,7 +89,7 @@ class ShowManualSteps < Base # === RBT::ShowManualSteps
|
|
92
89
|
new(i)
|
93
90
|
end; self.instance_eval { alias [] of } # === ShowManualSteps[]
|
94
91
|
|
95
|
-
end
|
92
|
+
end; end
|
96
93
|
|
97
94
|
# =========================================================================== #
|
98
95
|
# === RBT.show_manual_steps
|
@@ -102,14 +99,14 @@ end
|
|
102
99
|
# RBT.show_manual_steps(:kde5_plasma)
|
103
100
|
#
|
104
101
|
# =========================================================================== #
|
105
|
-
def self.show_manual_steps(of = ARGV)
|
102
|
+
def self.show_manual_steps(of = ARGV, &block)
|
106
103
|
[of].flatten.compact.each {|this_program|
|
107
|
-
RBT::ShowManualSteps.new(this_program)
|
104
|
+
RBT::ShowManualSteps.new(this_program, &block)
|
108
105
|
}
|
109
106
|
end
|
110
107
|
|
111
108
|
end
|
112
109
|
|
113
110
|
if __FILE__ == $PROGRAM_NAME
|
114
|
-
RBT
|
111
|
+
RBT.show_manual_steps(ARGV)
|
115
112
|
end # showmanualsteps glibc
|
@@ -0,0 +1,72 @@
|
|
1
|
+
#!/usr/bin/ruby -w
|
2
|
+
# Encoding: UTF-8
|
3
|
+
# frozen_string_literal: true
|
4
|
+
# =========================================================================== #
|
5
|
+
# require 'rbt/actions/individual_actions/software_manager/actions.rb'
|
6
|
+
# =========================================================================== #
|
7
|
+
require 'rbt/actions/action.rb'
|
8
|
+
|
9
|
+
module RBT
|
10
|
+
|
11
|
+
class Action
|
12
|
+
|
13
|
+
class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
|
14
|
+
|
15
|
+
# ========================================================================= #
|
16
|
+
# === action_generate_a_big_shell_script
|
17
|
+
# ========================================================================= #
|
18
|
+
def action_generate_a_big_shell_script
|
19
|
+
action(:generate_a_big_shell_script)
|
20
|
+
end
|
21
|
+
|
22
|
+
# ========================================================================= #
|
23
|
+
# === return_xfce_components
|
24
|
+
# ========================================================================= #
|
25
|
+
def return_xfce_components
|
26
|
+
action(:return_xfce_components)
|
27
|
+
end
|
28
|
+
|
29
|
+
# ========================================================================= #
|
30
|
+
# === generate_shell_completion
|
31
|
+
#
|
32
|
+
# Generates shell completion code. Right now it will only work for Bash.
|
33
|
+
#
|
34
|
+
# Invocation example:
|
35
|
+
#
|
36
|
+
# ry --generate_shell_completion
|
37
|
+
#
|
38
|
+
# ========================================================================= #
|
39
|
+
def generate_shell_completion(
|
40
|
+
for_this_shell = :all
|
41
|
+
)
|
42
|
+
action(:GenerateShellCompletion, for_this_shell)
|
43
|
+
end
|
44
|
+
|
45
|
+
# ========================================================================= #
|
46
|
+
# === show_the_n_last_updated_programs
|
47
|
+
# ========================================================================= #
|
48
|
+
def show_the_n_last_updated_programs(
|
49
|
+
i = 875
|
50
|
+
)
|
51
|
+
action(:ShowLastUpdated, display_n_programs: i)
|
52
|
+
end
|
53
|
+
|
54
|
+
# ========================================================================= #
|
55
|
+
# === backup_program
|
56
|
+
#
|
57
|
+
# Backup an existingp rogram under the /Programs/ hierarchy.
|
58
|
+
# ========================================================================= #
|
59
|
+
def backup_program(
|
60
|
+
i = compile_which_program?
|
61
|
+
)
|
62
|
+
action(:backup_program, i)
|
63
|
+
end
|
64
|
+
|
65
|
+
# ========================================================================= #
|
66
|
+
# === create_programs_url_file
|
67
|
+
# ========================================================================= #
|
68
|
+
def create_programs_url_file
|
69
|
+
action(__method__.to_sym)
|
70
|
+
end
|
71
|
+
|
72
|
+
end; end; end
|
@@ -37,6 +37,66 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
|
|
37
37
|
else
|
38
38
|
case i # (case tag, cas tag)
|
39
39
|
# ===================================================================== #
|
40
|
+
# === Generate a big shell script
|
41
|
+
#
|
42
|
+
# This entry point can be used to quickly generate the big
|
43
|
+
# shell script file that contains all programs versions as
|
44
|
+
# UPPERCASED variable, with an appended 'V'. So for example,
|
45
|
+
# BASHV would have a value of 5.0 or so, depending on the
|
46
|
+
# current version of bash registered in the rbt project.
|
47
|
+
#
|
48
|
+
# Invocation example:
|
49
|
+
#
|
50
|
+
# ry --shellscript
|
51
|
+
#
|
52
|
+
# ===================================================================== #
|
53
|
+
when /^-?-?shellscript$/i
|
54
|
+
action_generate_a_big_shell_script
|
55
|
+
exit_program
|
56
|
+
# ===================================================================== #
|
57
|
+
# === Show all Installed Programs, via a ruby-gtk3 widget
|
58
|
+
#
|
59
|
+
# Invocation example:
|
60
|
+
#
|
61
|
+
# rbt --installed-programs
|
62
|
+
#
|
63
|
+
# ===================================================================== #
|
64
|
+
when /^-?-?installed(-|_| )?programs$/i,
|
65
|
+
/^-?-?gtk(-|_| )?installed(-|_| )?programs$/i
|
66
|
+
require 'rbt/gui/gtk3/installed_programs/installed_programs.rb'
|
67
|
+
RBT::GUI::Gtk::InstalledPrograms.run
|
68
|
+
# ===================================================================== #
|
69
|
+
# === Start the main libui widget
|
70
|
+
#
|
71
|
+
# This entry point allows the user to start the libui-bindings for
|
72
|
+
# the SQL-centric compilation GUI.
|
73
|
+
#
|
74
|
+
# Invocation example:
|
75
|
+
#
|
76
|
+
# rbt --libui
|
77
|
+
#
|
78
|
+
# ===================================================================== #
|
79
|
+
when /^-?-?libui$/i
|
80
|
+
require 'rbt/gui/libui/compile_via_sql_database/compile_via_sql_database.rb'
|
81
|
+
RBT::GUI::LibUI::CompileProgram.new
|
82
|
+
# ===================================================================== #
|
83
|
+
# === Use different configure options
|
84
|
+
#
|
85
|
+
# We must allow the user to use a different set of configure options.
|
86
|
+
# This entry point ensures that.
|
87
|
+
#
|
88
|
+
# The user will be able to pass in the configure options specified
|
89
|
+
# in a commandline-flag.
|
90
|
+
#
|
91
|
+
# Invocation examples:
|
92
|
+
#
|
93
|
+
# ry gcc --use-these-configure-options="--enable-shared --enable-bootstrap --enable-languages=c,c++,lto,objc,fortran --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --with-arch-directory=amd64 --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux"
|
94
|
+
# ry poppler --use-these-configure-options="--enable-xpdf-headers"
|
95
|
+
#
|
96
|
+
# ===================================================================== #
|
97
|
+
when /^-?-?use(-|_| )?these(-|_| )?configure(-|_| )?options=(.+)$/
|
98
|
+
@internal_hash[:configure_options] = $4.to_s.dup
|
99
|
+
# ===================================================================== #
|
40
100
|
# == Non-Traditional compilation (ntrad tag)
|
41
101
|
#
|
42
102
|
# This entry point allows the user to compile the given program in
|
@@ -3643,23 +3703,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
|
|
3643
3703
|
get_packages
|
3644
3704
|
exit_program
|
3645
3705
|
# ===================================================================== #
|
3646
|
-
# === Use different configure options
|
3647
|
-
#
|
3648
|
-
# We must allow the user to use a different set of configure options.
|
3649
|
-
# This entry point ensures that.
|
3650
|
-
#
|
3651
|
-
# The user will be able to pass in the configure options specified
|
3652
|
-
# in a commandline-flag.
|
3653
|
-
#
|
3654
|
-
# Invocation examples:
|
3655
|
-
#
|
3656
|
-
# ry gcc --use-these-configure-options="--enable-shared --enable-bootstrap --enable-languages=c,c++,lto,objc,fortran --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --with-arch-directory=amd64 --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux"
|
3657
|
-
# ry poppler --use-these-configure-options="--enable-xpdf-headers"
|
3658
|
-
#
|
3659
|
-
# ===================================================================== #
|
3660
|
-
when /^-?-?use(-|_| )?these(-|_| )?configure(-|_| )?options=(.+)$/
|
3661
|
-
@internal_hash[:configure_options] = $4.to_s.dup
|
3662
|
-
# ===================================================================== #
|
3663
3706
|
# === Enable pkgconfig-symlinks
|
3664
3707
|
#
|
3665
3708
|
# This option exists in order to allow, on the commandline, to
|
@@ -7217,48 +7260,6 @@ class SoftwareManager < RBT::Action # === RBT::Action::SoftwareManager
|
|
7217
7260
|
display_postinstall_dataset
|
7218
7261
|
exit_program
|
7219
7262
|
# ===================================================================== #
|
7220
|
-
# === Generate a big shell script
|
7221
|
-
#
|
7222
|
-
# This entry point can be used to quickly generate the big
|
7223
|
-
# shell script file that contains all programs versions as
|
7224
|
-
# UPPERCASED variable, with an appended 'V'. So for example,
|
7225
|
-
# BASHV would have a value of 5.0 or so, depending on the
|
7226
|
-
# current version of bash registered in the rbt project.
|
7227
|
-
#
|
7228
|
-
# Invocation example:
|
7229
|
-
#
|
7230
|
-
# ry --shellscript
|
7231
|
-
#
|
7232
|
-
# ===================================================================== #
|
7233
|
-
when /^-?-?shellscript$/i
|
7234
|
-
action(:generate_a_big_shell_script)
|
7235
|
-
# ===================================================================== #
|
7236
|
-
# === Show all Installed Programs, via a ruby-gtk3 widget
|
7237
|
-
#
|
7238
|
-
# Invocation example:
|
7239
|
-
#
|
7240
|
-
# rbt --installed-programs
|
7241
|
-
#
|
7242
|
-
# ===================================================================== #
|
7243
|
-
when /^-?-?installed(-|_| )?programs$/i,
|
7244
|
-
/^-?-?gtk(-|_| )?installed(-|_| )?programs$/i
|
7245
|
-
require 'rbt/gui/gtk3/installed_programs/installed_programs.rb'
|
7246
|
-
RBT::GUI::Gtk::InstalledPrograms.run
|
7247
|
-
# ===================================================================== #
|
7248
|
-
# === Start the main libui widget
|
7249
|
-
#
|
7250
|
-
# This entry point allows the user to start the libui-bindings for
|
7251
|
-
# the SQL-centric compilation GUI.
|
7252
|
-
#
|
7253
|
-
# Invocation example:
|
7254
|
-
#
|
7255
|
-
# rbt --libui
|
7256
|
-
#
|
7257
|
-
# ===================================================================== #
|
7258
|
-
when /^-?-?libui$/i
|
7259
|
-
require 'rbt/gui/libui/compile_via_sql_database/compile_via_sql_database.rb'
|
7260
|
-
RBT::GUI::LibUI::CompileProgram.new
|
7261
|
-
# ===================================================================== #
|
7262
7263
|
# === Show all available programs
|
7263
7264
|
#
|
7264
7265
|
# This entry point allows the user to display all available programs,
|