Inspired by Java/OpenJDK zip archives I tried to create "portable" versions of
ooRexx. Once
unzipped, there is a simple, uniform directory layout that is the same for all
operating systems
(bin, doc, include, lib, samples).
In addition the unzipped directory includes a utility named
"setupoorexx.{cmd|sh}" and if run,
creates two shell scripts, a "rxenv.{sh|cmd}" and "setenv2rxenv.{sh|cmd}" which
point/refer to the
local, unzipped ooRexx.
This way one can easily have a number of different "potable" ooRexx
interpreters with different
revisions, bitnesses, release and debug versions that can be run/tested at the
same time on the same
machine (e.g. for development or testing or demonstration purposes).
It would be possible to carry those portable ooRexx interpreters on an USB
stick (and run them from
there on any operating system after running the setupoorexx shell script) or to
place them on a
local network or even to attach them to a mail.
The cmake driven operation will create two versions, a full version and a
runtime version (the
runtime version does not include the doc and samples directories).
The scripts generated with "setupoorexx.{sh|cmd}" make it easy to run Rexx
programs without having
ooRexx installed on a target system.
---
To see or test for yourself you may use this temporary Dropbox link:
<https://www.dropbox.com/sh/n65twckpkixl9gm/AADrnjgHAqiWQQU17GjGrtpna?dl=0>
which used the latest
version of ooRexx 5.0 from trunk for Apple, Linux and Windows.
Its content is:
Directory of e:\Dropbox\portable\release
01.02.2022 14:17 <DIR> .
01.02.2022 14:17 <DIR> ..
30.01.2022 18:59 1 833 594
ooRexx-5.0.0-darwin64-r12352-universal-portable-release-runtime.zip
30.01.2022 18:59 11 446 653
ooRexx-5.0.0-darwin64-r12352-universal-portable-release.zip
01.02.2022 14:06 1 420 066
ooRexx-5.0.0-linux64-r12352-x86_64-portable-release-runtime.zip
01.02.2022 14:06 11 022 636
ooRexx-5.0.0-linux64-r12352-x86_64-portable-release.zip
30.01.2022 13:24 1 439 030
ooRexx-5.0.0-win32-r12352-x86_32-portable-release-runtime.zip
30.01.2022 13:24 21 009 536
ooRexx-5.0.0-win32-r12352-x86_32-portable-release.zip
30.01.2022 14:10 1 636 074
ooRexx-5.0.0-win64-r12352-x86_64-portable-release-runtime.zip
30.01.2022 14:10 21 210 870
ooRexx-5.0.0-win64-r12352-x86_64-portable-release.zip
8 File(s) 71 018 459 bytes
Directory of e:\Dropbox\portable\release\debug
01.02.2022 14:17 <DIR> .
01.02.2022 14:17 <DIR> ..
30.01.2022 18:59 2 638 395
ooRexx-5.0.0-darwin64-r12352-universal-portable-debug-runtime.zip
30.01.2022 18:59 12 263 053
ooRexx-5.0.0-darwin64-r12352-universal-portable-debug.zip
01.02.2022 14:09 5 899 821
ooRexx-5.0.0-linux64-r12352-x86_64-portable-debug-runtime.zip
01.02.2022 14:09 15 625 873
ooRexx-5.0.0-linux64-r12352-x86_64-portable-debug.zip
30.01.2022 13:50 7 662 456
ooRexx-5.0.0-win32-r12352-x86_32-portable-debug-runtime.zip
30.01.2022 13:50 27 299 302
ooRexx-5.0.0-win32-r12352-x86_32-portable-debug.zip
30.01.2022 14:22 8 036 177
ooRexx-5.0.0-win64-r12352-x86_64-portable-debug-runtime.zip
30.01.2022 14:22 27 692 923
ooRexx-5.0.0-win64-r12352-x86_64-portable-debug.zip
8 File(s) 107 118 000 bytes
You will notice the differences in size depending whether it is the debug or
the release version and
depending whether it is the full or the runtime version.
---
If you can see utility in this, then I am more than happy to commit the
necessary changes to the
project such that one simply needs to issue "make portable".
You can download any of the above portable zip archives for your operating
system, unzip them, run
the setupoorexx shell scripts and study the readme.txt output.
---rony
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel