Hi Michael,

temporarily one could run the following script on Linux and copy its output 
from the terminal and
paste it into (the same or any other) terminal in order to create the necessary 
symbolic links when
wishing to run pre-ooRexx 5.0beta linked programs with ooRexx5.0beta:

    /* ---rgf, 2017-02-04: create symbolic links to allow older linked programs 
to continue to work
    with ooRexx 5.0 beta; will create the necessary commands on stdout: which 
can be copied and
    pasted by the user in order to really create the symbolic links */ 
maxLibVersionNr=5 -- ooRexx
    5.0beta -- (name, minimum_version) libs=.array~of( - .array~of("librexx.so" 
, 2) , -
    .array~of("librexxapi.so" , 2) , - .array~of("librexxutil.so" , 2) , - 
.array~of("librxmath.so"
    , 4) , - .array~of("librxregexp.so" , 2) , - .array~of("librxsock.so" , 2) 
, -
    .array~of("librxunixsys.so", 4) , - ) -- find "librexx.so" call sysFileTree 
"/usr/librexx.so",
    "file.", "FOS" if file.0=0 then do say "'librexx.so' not found, 
aborting..." exit -1 end do i=1
    to file.0 say "# i="i"/"file.0 "- found:" pp(file.i) -- use a comment 
lead-in such that copy and
    paste will work with this output as well tgtLibDir=filespec("Location", 
file.i) -- "Location"
    returns with the trailing slash cmd="sudo ln -sfv" -- symbolic (force, 
verbose) link command do
    lib over libs baseName=tgtLibDir || lib[1] -- fully qualified name of base 
library name if
    sysFileExists(baseName) then -- base library exists do i=lib[2] to 
maxLibVersionNr-1 -- assuming
    that max version number exists newLink=tgtLibDir || lib[1]"."i -- fully 
qualified name of needed
    symbolic link if sysFileExists(newLink) then iterate -- link exists already 
say cmd baseName
    newLink -- show command to create the needed symbolic link for copy and 
paste end end say end
    ::routine pp return "["arg(1)"]"

Note: the line led-in with the "#" character can be safely copied and pasted as 
well as the lead-in
character will make it a comment.

---rony



On 26.01.2017 14:46, Rony G. Flatscher wrote:
> Hi Michael,
>
> On 26.01.2017 14:31, Michael Lueck wrote:
>> Rony G. Flatscher wrote:
>>> Maybe I should file a bug/RFE
>> Yes please. Either pass along the number when you file it, or feel free to 
>> copy in what I added.
> ah, o.k.: *[bugs:#1421] <https://sourceforge.net/p/oorexx/bugs/1421/>.
> *
> ---rony*
> *

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Oorexx-devel mailing list
Oorexx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to