rbt 0.10.155 → 0.10.156
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 +7 -9
- data/doc/todo/numbered_todo_entries.md +8 -33
- data/lib/rbt/compile/misc.rb +7 -7
- data/lib/rbt/compile/symlink.rb +21 -21
- data/lib/rbt/utility_scripts/postinstallation_step/postinstallation_step.rb +18 -18
- data/lib/rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb +63 -62
- data/lib/rbt/version/version.rb +1 -1
- data/lib/rbt/yaml/cookbooks/certifi.yml +1 -1
- data/lib/rbt/yaml/cookbooks/hashie.yml +1 -1
- data/lib/rbt/yaml/cookbooks/jpeg.yml +1 -1
- data/lib/rbt/yaml/cookbooks/karchive.yml +1 -1
- data/lib/rbt/yaml/cookbooks/opencv.yml +1 -1
- data/lib/rbt/yaml/cookbooks/xf86videovmware.yml +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73ff93b11cc69dc46a4d7ede2644840d64c8c8f166a94010adf016f9eadbd092
|
4
|
+
data.tar.gz: f54af4125ce353097e52506938b5679386759990f2e46238caff2d8f844e7e44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7eec18df14cddd33f9fff8a341c11f533389b863ce4e4612ef3aad126f3280c100f3a2bfa2bf2950994ca23dc0f621f6e99000afa91212f4ae02f5013aa023c
|
7
|
+
data.tar.gz: eed5a862c82ff94bf1d1a1300f0e8b6265ac650dbfac58037457a7fca2bd60c49465db97a1ff2ecfede05696c34888cf8855e55f8f24d335218ff4a304f5992c
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[![forthebadge](http://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">29.05.2021</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">
|
8
|
+
This gem was <b>last updated</b> on the <span style="color: darkblue; font-weight: bold">29.05.2021</span> (dd.mm.yyyy notation), at <span style="color: steelblue; font-weight: bold">13:09:10</span> o'clock.
|
9
9
|
|
10
10
|
## RBT - The "Ruby Build Tools" Project
|
11
11
|
|
@@ -7720,10 +7720,6 @@ For more documentation, have a look at
|
|
7720
7720
|
The following programs were updated with this release,
|
7721
7721
|
compared to the previous release:
|
7722
7722
|
|
7723
|
-
linux was updated to program version 5.12.8 (on: 28.05.2021-16:13:14)<br>
|
7724
|
-
m4 was updated to program version 1.4.19 (on: 29.05.2021-00:53:15)<br>
|
7725
|
-
nim was updated to program version 1.4.8 (on: 29.05.2021-09:49:56)<br>
|
7726
|
-
|
7727
7723
|
|
7728
7724
|
## Available program versions
|
7729
7725
|
|
@@ -8151,7 +8147,7 @@ compositeproto 0.4.2 08 Aug 2016 https://www.x.org/releases/i
|
|
8151
8147
|
comptonconf 0.16.0 06 Nov 2020 https://github.com/lxqt/compton-conf/releases/download/0.16.0/compton-conf-0.16.0.tar.xz
|
8152
8148
|
concurrentruby 1.1.8 15 Apr 2021 https://rubygems.org/downloads/concurrent-ruby-1.1.8.gem
|
8153
8149
|
confuse 3.3 03 Aug 2020 https://github.com/martinh/libconfuse/releases/download/v3.3/confuse-3.3.tar.xz
|
8154
|
-
|
8150
|
+
conky 1.12.2 03 May 2018 https://github.com/brndnmtthws/conky/archive/refs/tags/v1.12.2.tar.gz
|
8155
8151
|
connections 3.38.1 19 Oct 2020 http://ftp.gnome.org/pub/gnome/sources/connections/3.38/connections-3.38.1.tar.xz
|
8156
8152
|
connman 1.33 22 Feb 2017 https://www.kernel.org/pub/linux/network/connman/connman-1.33.tar.xz
|
8157
8153
|
consolekit 0.4.6 01 Jun 2014 http://anduin.linuxfromscratch.org/sources/BLFS/svn/c/ConsoleKit-0.4.6.tar.xz
|
@@ -9742,6 +9738,7 @@ libwebp 1.2.0 04 Feb 2021 http://downloads.webmproject
|
|
9742
9738
|
libwindowswm 1.0.0 01 Jun 2014 http://ftp.cica.es/pub/X/pub/X11R7.3/src/lib/libWindowsWM-1.0.0.tar.bz2
|
9743
9739
|
libwmf 0.2.12 27 Nov 2020 https://github.com/caolanm/libwmf/archive/v0.2.12.tar.gz
|
9744
9740
|
libwnck 40.0 11 May 2021 https://download.gnome.org/sources/libwnck/40/libwnck-40.0.tar.xz
|
9741
|
+
libwpe 1.10.0 28 May 2021 https://wpewebkit.org/releases/libwpe-1.10.0.tar.xz
|
9745
9742
|
libwps 0.4.10 17 Sep 2018 https://sourceforge.net/projects/libwps/files/libwps/libwps-0.4.10/libwps-0.4.10.tar.xz
|
9746
9743
|
libwrapiter 1.2.0 01 Jun 2014 http://libwrapiter.berlios.de/
|
9747
9744
|
libwwwperl 6.35 29 Jul 2018 http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/libwww-perl-6.35.tar.gz
|
@@ -9821,7 +9818,7 @@ lineakd 0.9 01 May 2014 http://prdownloads.sourcefor
|
|
9821
9818
|
linkgrammar 5.2.5 28 Sep 2015 http://www.abiword.org/downloads/link-grammar/5.2.5/link-grammar-5.2.5.tar.gz
|
9822
9819
|
links 2.23 24 May 2021 http://links.twibright.com/download/links-2.23.tar.bz2
|
9823
9820
|
linlibertine 2.0.9 01 Jun 2014 http://sourceforge.net/projects/linuxlibertine
|
9824
|
-
linux 5.12.
|
9821
|
+
linux 5.12.8 28 May 2021 https://www.kernel.org/pub/linux/kernel/v5.x/linux-5.12.8.tar.xz
|
9825
9822
|
linuxlive 6.2.4 01 Jun 2014 ftp://ftp.slax.org/Linux-Live/linux-live-6.2.4.tar.gz
|
9826
9823
|
linuxpam 1.5.0 12 Nov 2020 https://github.com/linux-pam/linux-pam/releases/download/v1.5.0/Linux-PAM-1.5.0.tar.xz
|
9827
9824
|
liquidwar 5.6.5 23 Nov 2019 http://www.ufoot.org/download/liquidwar/v5/5.6.5/liquidwar-5.6.5.tar.gz
|
@@ -9900,7 +9897,7 @@ lzma 4.32.7 01 Dec 2012 http://tukaani.org/lzma/lzma
|
|
9900
9897
|
lzo 2.10 07 Jan 2018 http://www.oberhumer.com/opensource/lzo/download/lzo-2.10.tar.gz
|
9901
9898
|
m17nlib 1.7.0 03 Jan 2018 http://download.savannah.gnu.org/releases/m17n/m17n-lib-1.7.0.tar.gz
|
9902
9899
|
m2crypto 0.36.0 16 Jul 2020 https://files.pythonhosted.org/packages/ff/df/84609ed874b5e6fcd3061a517bf4b6e4d0301f553baf9fa37bef2b509797/M2Crypto-0.36.0.tar.gz
|
9903
|
-
m4 1.4.
|
9900
|
+
m4 1.4.19 29 May 2021 ftp://ftp.gnu.org/gnu/m4/m4-1.4.19.tar.xz
|
9904
9901
|
madplay 0.15.2b 07 Dec 2019 ftp://ftp.mars.org/pub/mpeg/madplay-0.15.2b.tar.gz
|
9905
9902
|
madwifi 0.9.4 01 Jun 2014 http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.bz2
|
9906
9903
|
mafft 7.467 05 Jun 2020 https://mafft.cbrc.jp/alignment/software/mafft-7.467-with-extensions-src.tgz
|
@@ -10192,7 +10189,7 @@ nghttp2 1.43.0 04 Feb 2021 https://github.com/nghttp2/n
|
|
10192
10189
|
nginx 1.20.1 25 May 2021 http://nginx.org/download/nginx-1.20.1.tar.gz
|
10193
10190
|
nglview 2.5.2 09 Jul 2019 https://files.pythonhosted.org/packages/40/03/3d45ce1a34729bfd90c8c98e3d0e18483211408ae990feb0b4b0de5bf49b/nglview-2.5.2.tar.gz
|
10194
10191
|
ngstar 1.3.3 01 Jun 2014 http://cycojesus.free.fr/faire/coder/jouer/ng-star/files/
|
10195
|
-
nim 1.
|
10192
|
+
nim 1.4.8 29 May 2021 https://nim-lang.org/download/nim-1.4.8.tar.xz
|
10196
10193
|
ninja 1.10.1 19 Aug 2020 https://github.com/ninja-build/ninja/archive/v1.10.1.tar.gz
|
10197
10194
|
nio4r 2.5.7 15 Apr 2021 https://rubygems.org/downloads/nio4r-2.5.7.gem
|
10198
10195
|
nmap 7.91 11 Oct 2020 http://download.insecure.org/nmap/dist/nmap-7.91.tgz
|
@@ -11175,6 +11172,7 @@ wmii 3 01 May 2014 http://www.suckless.org/snap
|
|
11175
11172
|
wordpress 5.7 10 Mar 2021 https://wordpress.org/wordpress-5.7.tar.gz
|
11176
11173
|
worker 4.7.0 10 Mar 2021 http://www.boomerangsworld.de/cms/worker/downloads/worker-4.7.0.tar.bz2
|
11177
11174
|
wpasupplicant 2.9 09 Aug 2019 http://hostap.epitest.fi/releases/wpa_supplicant-2.9.tar.gz
|
11175
|
+
wpebackendfdo 1.8.4 28 May 2021 https://wpewebkit.org/releases/wpebackend-fdo-1.8.4.tar.xz
|
11178
11176
|
wput 0.6.1 01 May 2014 http://prdownloads.sourceforge.net/wput/wput-0.6.1.tgz
|
11179
11177
|
writeexcel 1.0.5 12 Aug 2017 https://rubygems.org/downloads/writeexcel-1.0.5.gem
|
11180
11178
|
wv 1.2.9 01 Aug 2013 http://www.abisource.com/downloads/wv/1.2.9/wv-1.2.9.tar.gz
|
@@ -1,19 +1,17 @@
|
|
1
1
|
-------------------------------------------------------------------------------
|
2
|
-
(1) → fix the rnsymc step
|
3
|
-
it should be done but it is not hmmmmm
|
4
2
|
|
5
|
-
|
3
|
+
/System/Index/bin/ld: error: cannot find -lgtkmm-3.0
|
6
4
|
|
7
|
-
^^^
|
8
|
-
must write down when it occurs next time.
|
5
|
+
^^^ register such an error
|
9
6
|
|
7
|
+
AND at the least colourize this in red, the message that is [DONE THIS PART]
|
10
8
|
-------------------------------------------------------------------------------
|
11
|
-
(
|
9
|
+
(1) → # add a kill-compile-button or so
|
12
10
|
but we must deterine the PID
|
13
11
|
^^^ the functionality now exists but we need to
|
14
12
|
re-arrange the button there. align it rightwards
|
15
13
|
-------------------------------------------------------------------------------
|
16
|
-
(
|
14
|
+
(2) → validate_all_cookbook_entries
|
17
15
|
^^^ continue there and add homepages to every entry.
|
18
16
|
-------------------------------------------------------------------------------
|
19
17
|
(4) → When we repackage something, and an extracted dir with the same
|
@@ -2404,14 +2402,9 @@ or not
|
|
2404
2402
|
should NOT be a part!!!!!!!
|
2405
2403
|
|
2406
2404
|
|
2407
|
-
|
2408
|
-
|
2409
2405
|
------
|
2410
|
-
|
2411
|
-
|
2412
|
-
also in rbt ... add a configur option
|
2413
|
-
whether to use abbreviations or not
|
2414
|
-
tothe main programs
|
2406
|
+
- in rbt ... add a configure option whether to use abbreviations or
|
2407
|
+
not tothe main programs.
|
2415
2408
|
|
2416
2409
|
enable:
|
2417
2410
|
|
@@ -2436,20 +2429,6 @@ or parse it into its constituents
|
|
2436
2429
|
|
2437
2430
|
|
2438
2431
|
|
2439
|
-
|
2440
|
-
|
2441
|
-
|
2442
|
-
|
2443
|
-
|
2444
|
-
-------------------------------------------------------------------------------
|
2445
|
-
|
2446
|
-
/System/Index/bin/ld: error: cannot find -lgtkmm-3.0
|
2447
|
-
|
2448
|
-
^^^ register such an error
|
2449
|
-
|
2450
|
-
AND at the least colourize this in red, the message that is [DONE THIS PART]
|
2451
|
-
|
2452
|
-
|
2453
2432
|
-------------------------------------------------------------------------------
|
2454
2433
|
|
2455
2434
|
START OLD CONGLOMERATE:
|
@@ -3524,13 +3503,9 @@ class Installer
|
|
3524
3503
|
end
|
3525
3504
|
end
|
3526
3505
|
|
3527
|
-
|
3528
3506
|
# ========================================================================= #
|
3529
3507
|
# === invoke_gnustyle_compiling
|
3530
|
-
#
|
3531
|
-
# configure, make and make install. (This is the default for GNU
|
3532
|
-
# compilations). In other words, we have three main steps here.
|
3533
|
-
#
|
3508
|
+
#
|
3534
3509
|
# Normally, this method will invoke the following build chain:
|
3535
3510
|
#
|
3536
3511
|
# "configure"
|
data/lib/rbt/compile/misc.rb
CHANGED
@@ -14,6 +14,13 @@ class Compile < ::RBT::CompileBase # === RBT::Compile
|
|
14
14
|
require 'rbt/aliases/aliases.rb'
|
15
15
|
require 'rbt/compile/handle_this_program.rb'
|
16
16
|
|
17
|
+
# ========================================================================= #
|
18
|
+
# === rnsymc
|
19
|
+
# ========================================================================= #
|
20
|
+
def rnsymc(i = return_pwd)
|
21
|
+
RBT::SymlinkFromToCurrent.new(i)
|
22
|
+
end
|
23
|
+
|
17
24
|
# ========================================================================= #
|
18
25
|
# === create_standalone_yaml_file
|
19
26
|
#
|
@@ -3155,13 +3162,6 @@ class Compile < ::RBT::CompileBase # === RBT::Compile
|
|
3155
3162
|
end
|
3156
3163
|
end
|
3157
3164
|
|
3158
|
-
# ========================================================================= #
|
3159
|
-
# === rnsymc
|
3160
|
-
# ========================================================================= #
|
3161
|
-
def rnsymc(i = return_pwd)
|
3162
|
-
RBT::SymlinkFromToCurrent.new(i)
|
3163
|
-
end
|
3164
|
-
|
3165
3165
|
# ========================================================================= #
|
3166
3166
|
# === generate_machomebrew_formula
|
3167
3167
|
#
|
data/lib/rbt/compile/symlink.rb
CHANGED
@@ -8,6 +8,27 @@ module RBT
|
|
8
8
|
|
9
9
|
class Compile < ::RBT::CompileBase # === RBT::Compile
|
10
10
|
|
11
|
+
require 'rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb'
|
12
|
+
# ========================================================================= #
|
13
|
+
# === set_symlink_program
|
14
|
+
# ========================================================================= #
|
15
|
+
def set_symlink_program(
|
16
|
+
compile_this_program = compile_which_program?,
|
17
|
+
use_this_program_version = program_version?
|
18
|
+
)
|
19
|
+
# ======================================================================= #
|
20
|
+
# We will delegate towards class RBT::SymlinkFromToCurrent next.
|
21
|
+
# ======================================================================= #
|
22
|
+
_ = RBT::SymlinkFromToCurrent.new(
|
23
|
+
[ # Pass an Array here.
|
24
|
+
compile_this_program,
|
25
|
+
use_this_program_version
|
26
|
+
],
|
27
|
+
:do_not_run_yet
|
28
|
+
) {{ use_opn: use_opn? }}
|
29
|
+
@internal_hash[:symlink_program] = _
|
30
|
+
end
|
31
|
+
|
11
32
|
# ========================================================================= #
|
12
33
|
# === prepare_symlink_program_instance
|
13
34
|
# ========================================================================= #
|
@@ -30,27 +51,6 @@ class Compile < ::RBT::CompileBase # === RBT::Compile
|
|
30
51
|
symlink_program.do_not_register_into_the_local_yaml_database
|
31
52
|
end
|
32
53
|
|
33
|
-
require 'rbt/utility_scripts/symlink_from_to_current/symlink_from_to_current.rb'
|
34
|
-
# ========================================================================= #
|
35
|
-
# === set_symlink_program
|
36
|
-
# ========================================================================= #
|
37
|
-
def set_symlink_program(
|
38
|
-
compile_this_program = compile_which_program?,
|
39
|
-
use_this_program_version = program_version?
|
40
|
-
)
|
41
|
-
# ======================================================================= #
|
42
|
-
# We will delegate towards class RBT::SymlinkFromToCurrent next.
|
43
|
-
# ======================================================================= #
|
44
|
-
_ = RBT::SymlinkFromToCurrent.new(
|
45
|
-
[ # Pass an Array here.
|
46
|
-
compile_this_program,
|
47
|
-
use_this_program_version
|
48
|
-
],
|
49
|
-
:do_not_run_yet
|
50
|
-
) {{ use_opn: use_opn? }}
|
51
|
-
@internal_hash[:symlink_program] = _
|
52
|
-
end
|
53
|
-
|
54
54
|
# ========================================================================= #
|
55
55
|
# === verbose_do_symlink_headers_into_usr_include_hierarchy
|
56
56
|
#
|
@@ -224,24 +224,6 @@ class PostinstallationStep < CompileBase # === RBT::PostinstallationStep
|
|
224
224
|
end
|
225
225
|
end
|
226
226
|
|
227
|
-
# ========================================================================= #
|
228
|
-
# === create_symlinks
|
229
|
-
#
|
230
|
-
# This is only needed when the prefix is not traditional (i.e. Gobolinux
|
231
|
-
# prefix). It will be called via the method do_postinstall_actions().
|
232
|
-
# ========================================================================= #
|
233
|
-
def create_symlinks(
|
234
|
-
i = compile_which_program?,
|
235
|
-
shall_we_invoke_symlink_program = shall_we_invoke_symlink_program?,
|
236
|
-
use_this_as_program_version = program_version?
|
237
|
-
)
|
238
|
-
if shall_we_invoke_symlink_program
|
239
|
-
opne "Now running #{sfancy('RBT::SymlinkFromToCurrent')} "\
|
240
|
-
"to symlink the content of `#{sdir(i)}`."
|
241
|
-
do_invoke_symlink_program(i, use_this_as_program_version)
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
227
|
# ========================================================================= #
|
246
228
|
# === program_version?
|
247
229
|
# ========================================================================= #
|
@@ -365,6 +347,24 @@ class PostinstallationStep < CompileBase # === RBT::PostinstallationStep
|
|
365
347
|
play_song if play_song?
|
366
348
|
end
|
367
349
|
|
350
|
+
# ========================================================================= #
|
351
|
+
# === create_symlinks
|
352
|
+
#
|
353
|
+
# This is only needed when the prefix is not traditional (i.e. Gobolinux
|
354
|
+
# prefix). It will be called via the method do_postinstall_actions().
|
355
|
+
# ========================================================================= #
|
356
|
+
def create_symlinks(
|
357
|
+
i = compile_which_program?,
|
358
|
+
shall_we_invoke_symlink_program = shall_we_invoke_symlink_program?,
|
359
|
+
use_this_as_program_version = program_version?
|
360
|
+
)
|
361
|
+
if shall_we_invoke_symlink_program
|
362
|
+
opne "Now running #{sfancy('RBT::SymlinkFromToCurrent')} "\
|
363
|
+
"to symlink the content of `#{sdir(i)}`."
|
364
|
+
do_invoke_symlink_program(i, use_this_as_program_version)
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
368
368
|
# ========================================================================= #
|
369
369
|
# === RBT::PostinstallationStep[]
|
370
370
|
# ========================================================================= #
|
@@ -183,6 +183,9 @@ class SymlinkFromToCurrent < Base # === RBT::SymlinkFromToCurrent
|
|
183
183
|
# ======================================================================= #
|
184
184
|
@do_register_into_the_local_yaml_database =
|
185
185
|
DO_REGISTER_INTO_THE_LOCAL_YAML_DATABASE
|
186
|
+
set_use_this_program(
|
187
|
+
first_argument_or_current_working_directory
|
188
|
+
)
|
186
189
|
end
|
187
190
|
|
188
191
|
# ========================================================================= #
|
@@ -535,64 +538,6 @@ class SymlinkFromToCurrent < Base # === RBT::SymlinkFromToCurrent
|
|
535
538
|
write_what_into(what, into)
|
536
539
|
end; alias try_to_save_the_name_of_the_program_into_a_local_file keep_track_which_program_was_last_symlinked # === try_to_save_the_name_of_the_program_into_a_local_file
|
537
540
|
|
538
|
-
# ========================================================================= #
|
539
|
-
# === set_use_this_program
|
540
|
-
#
|
541
|
-
# Keep in mind that this method has to be flexible; user input may
|
542
|
-
# look like this:
|
543
|
-
#
|
544
|
-
# rnsymc php 7.3.7
|
545
|
-
#
|
546
|
-
# We could also enable input such as 'Ruby/2.6.3/' but right now this
|
547
|
-
# class is not handling such input.
|
548
|
-
# ========================================================================= #
|
549
|
-
def set_use_this_program(
|
550
|
-
i = nil
|
551
|
-
)
|
552
|
-
if i
|
553
|
-
# ===================================================================== #
|
554
|
-
# First, handle Arrays.
|
555
|
-
# ===================================================================== #
|
556
|
-
i = i.first if i.is_a? Array
|
557
|
-
# ===================================================================== #
|
558
|
-
# === Handle Hashes next
|
559
|
-
#
|
560
|
-
# If a Hash is given to this method then this class will try to
|
561
|
-
# assume that it contains a key called :to.
|
562
|
-
# ===================================================================== #
|
563
|
-
if i.is_a? Hash
|
564
|
-
i = i.delete(:to) if i.has_key? :to
|
565
|
-
end
|
566
|
-
commandline_arguments = commandline_arguments?
|
567
|
-
# ===================================================================== #
|
568
|
-
# Check for the second argument being a number or not:
|
569
|
-
# ===================================================================== #
|
570
|
-
if commandline_arguments and is_it_a_number?(commandline_arguments[1])
|
571
|
-
i = "#{appdir_prefix?}#{capitalized(i)}/#{commandline_arguments[1]}/"
|
572
|
-
end
|
573
|
-
case i
|
574
|
-
when :default
|
575
|
-
i = static_appdir_prefix_of?(name_of_the_program?, program_version?)
|
576
|
-
else
|
577
|
-
unless i.include? '/'
|
578
|
-
i = appdir_prefix?+capitalized(i)+'/Current/'
|
579
|
-
end
|
580
|
-
end
|
581
|
-
unless i.end_with? '/'
|
582
|
-
i << '/'
|
583
|
-
end
|
584
|
-
end
|
585
|
-
if i.is_a? String
|
586
|
-
i = rds(i) # Get rid of double slashes, just in case.
|
587
|
-
end
|
588
|
-
@use_this_program = i
|
589
|
-
end; alias set_prefix set_use_this_program # === set_prefix
|
590
|
-
alias set_full_path set_use_this_program # === set_full_path
|
591
|
-
alias set_full_path_to_the_target_program set_use_this_program # === set_full_path_to_the_target_program
|
592
|
-
alias set_symlink_this_program set_use_this_program # === set_symlink_this_program
|
593
|
-
alias set_name_of_the_program set_use_this_program # === set_name_of_the_program
|
594
|
-
alias set_use_this_program set_use_this_program # === set_use_this_program
|
595
|
-
|
596
541
|
# ========================================================================= #
|
597
542
|
# === capitalized
|
598
543
|
# ========================================================================= #
|
@@ -708,7 +653,8 @@ class SymlinkFromToCurrent < Base # === RBT::SymlinkFromToCurrent
|
|
708
653
|
end; alias prefix? use_this_program? # === prefix?
|
709
654
|
alias full_path? use_this_program? # === full_path?
|
710
655
|
alias path? use_this_program? # === full_path?
|
711
|
-
alias full_path_to_the_target_program? use_this_program?
|
656
|
+
alias full_path_to_the_target_program? use_this_program? # === full_path_to_the_target_program?
|
657
|
+
alias target_directory? use_this_program? # === target_directory?
|
712
658
|
|
713
659
|
# ========================================================================= #
|
714
660
|
# === menu (menu tag)
|
@@ -841,13 +787,68 @@ class SymlinkFromToCurrent < Base # === RBT::SymlinkFromToCurrent
|
|
841
787
|
opnn if @use_opn; e _
|
842
788
|
end
|
843
789
|
|
790
|
+
# ========================================================================= #
|
791
|
+
# === set_use_this_program
|
792
|
+
#
|
793
|
+
# Keep in mind that this method has to be flexible; user input may
|
794
|
+
# look like this:
|
795
|
+
#
|
796
|
+
# rnsymc php 7.3.7
|
797
|
+
#
|
798
|
+
# We could also enable input such as 'Ruby/2.6.3/' but right now this
|
799
|
+
# class is not handling such input.
|
800
|
+
# ========================================================================= #
|
801
|
+
def set_use_this_program(
|
802
|
+
i = nil
|
803
|
+
)
|
804
|
+
if i
|
805
|
+
# ===================================================================== #
|
806
|
+
# First, handle Arrays.
|
807
|
+
# ===================================================================== #
|
808
|
+
i = i.first if i.is_a? Array
|
809
|
+
# ===================================================================== #
|
810
|
+
# === Handle Hashes next
|
811
|
+
#
|
812
|
+
# If a Hash is given to this method then this class will try to
|
813
|
+
# assume that it contains a key called :to.
|
814
|
+
# ===================================================================== #
|
815
|
+
if i.is_a? Hash
|
816
|
+
i = i.delete(:to) if i.has_key? :to
|
817
|
+
end
|
818
|
+
commandline_arguments = commandline_arguments?
|
819
|
+
# ===================================================================== #
|
820
|
+
# Check for the second argument being a number or not:
|
821
|
+
# ===================================================================== #
|
822
|
+
if commandline_arguments and is_it_a_number?(commandline_arguments[1])
|
823
|
+
i = "#{appdir_prefix?}#{capitalized(i)}/#{commandline_arguments[1]}/"
|
824
|
+
end
|
825
|
+
case i
|
826
|
+
when :default
|
827
|
+
i = static_appdir_prefix_of?(name_of_the_program?, program_version?)
|
828
|
+
else
|
829
|
+
unless i.include? '/'
|
830
|
+
i = appdir_prefix?+capitalized(i)+'/Current/'
|
831
|
+
end
|
832
|
+
end
|
833
|
+
unless i.end_with? '/'
|
834
|
+
i << '/'
|
835
|
+
end
|
836
|
+
end
|
837
|
+
if i.is_a? String
|
838
|
+
i = rds(i) # Get rid of double slashes, just in case.
|
839
|
+
end
|
840
|
+
@use_this_program = i
|
841
|
+
end; alias set_prefix set_use_this_program # === set_prefix
|
842
|
+
alias set_full_path set_use_this_program # === set_full_path
|
843
|
+
alias set_full_path_to_the_target_program set_use_this_program # === set_full_path_to_the_target_program
|
844
|
+
alias set_symlink_this_program set_use_this_program # === set_symlink_this_program
|
845
|
+
alias set_name_of_the_program set_use_this_program # === set_name_of_the_program
|
846
|
+
alias set_use_this_program set_use_this_program # === set_use_this_program
|
847
|
+
|
844
848
|
# ========================================================================= #
|
845
849
|
# === run (run tag)
|
846
850
|
# ========================================================================= #
|
847
851
|
def run
|
848
|
-
set_use_this_program(
|
849
|
-
first_argument_or_current_working_directory
|
850
|
-
)
|
851
852
|
menu
|
852
853
|
do_symlink if @will_we_symlink
|
853
854
|
end
|
data/lib/rbt/version/version.rb
CHANGED
@@ -13,7 +13,7 @@ module RBT
|
|
13
13
|
# just an alias to it - stick to using VERSION instead "officially"
|
14
14
|
# whenever possible.
|
15
15
|
# ========================================================================= #
|
16
|
-
VERSION = '0.10.
|
16
|
+
VERSION = '0.10.156'
|
17
17
|
RBT_VERSION_NUMBER = VERSION # === RBT_VERSION_NUMBER
|
18
18
|
PROGRAM_VERSION = VERSION # === PROGRAM_VERSION
|
19
19
|
|
@@ -12,7 +12,7 @@ certifi:
|
|
12
12
|
url1: https://files.pythonhosted.org/packages/41/bf/9d214a5af07debc6acf7f3f257265618f1db242a3f8e49a9b516f24523a6/certifi-2019.11.28.tar.gz
|
13
13
|
homepage: https://pypi.python.org/pypi/certifi
|
14
14
|
installation_steps: PYTHON_INSTALLATION
|
15
|
-
keep_extracted:
|
15
|
+
keep_extracted: yes
|
16
16
|
required_deps_on:
|
17
17
|
- python
|
18
18
|
last_update: 01 Dec 2019
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rbt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.156
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert A. Heiler
|
@@ -8600,7 +8600,7 @@ post_install_message: "\n With the RBT scripts, you should be able to install o
|
|
8600
8600
|
see:\n\n scookie --help\n\n If you wish to search for common tags, such as
|
8601
8601
|
tag \"ruby\" or tag\n \"php\", then try this:\n\n search_for_tags ruby\n search_for_tags
|
8602
8602
|
php\n\n This can be found in the subdirectory bin/search_for_tags of\n this gem.\n\n
|
8603
|
-
\ For more documentation, the official documentation, have a look at:\n\n https://www.rubydoc.info/gems/rbt/0.10.
|
8603
|
+
\ For more documentation, the official documentation, have a look at:\n\n https://www.rubydoc.info/gems/rbt/0.10.156\n\n
|
8604
8604
|
\ If you encounter any bug or oddities, feel free to drop an email\n to:\n\n shevegen@gmail.com\n\n
|
8605
8605
|
\ (I do not check for mails daily, though, so this may take a \n while to process
|
8606
8606
|
- apologies for that.)\n\n Thank you and have fun!\n\n"
|