Out of curiosity, I tried installing a portable version of ooRexx in a Windows directory and then, *on top of it*, an Ubuntu version. Well, it works, and one can use it from Windows *and* from WSL, which is quite useful, and it saves some MBs.
*Why does this work?* Well, fundamentally because Windows and Ubuntu store rexx.img in different places (bin and lib respectively), and because executables and libraries don't clash either, as they have different (or no) extensions. Some files *do* clash, though. I've written a small program, which I'm attaching. You create a new directory, place the program there, unzip the Windows version under a windows subdir and the Ubuntu version under an ubuntu subdir, and run it. It will alert you when a file can be found in both versions (and therefore installing one version on top of the other can create conflicts), and when a file is found in only one of the versions. Some files are Windows-only, and some are Ubuntu-only; the program knows which ones, and doesn't complain for these -- it's all customizable, just take a look at the source code. *Some files that should be checked* - bin\CPLv1.0.txt appears only on Windows, which doesn't make much sense. - samples\readme.txt appears only on Ubuntu, but it says "These programs are executable without any change on all supported platforms", which is kind of a contradiction. - samples\api\classic\rexxapi.README appears only on Ubuntu; my impression is that it should appear in Windows too. - samples\api\classic\rexxapi1\apitest1.rex -- the Ubuntu and Windows versions differ, but most probably they should be the same. - Same for samples\api\classic\rexxapi2\apitest2.rex -- in that case, the module name in RxFuncAdd is lowercase in the Ubuntu version. - Same for samples\api\classic\rexxapi3\apitest3.rex -- Not sure these can be reconciled, but dual code can be produced for sure. - The C code for these last 3 examples is platform-dependent. Maybe they could be put in different subdirectories to avoid conflicts. - In the include subdirectory, rexxapitypes.h, rexxplatformapis.h and rexxplatformdefs.h are platform-dependent. Maybe they could be put in different subdirectories to avoid conflicts. *Conclusion* With only a few changes, one could safely install an Ubuntu version (from WSL) and a Windows version on top of it, and experience no conflicts at all. Currently, everything works, but you lose access to these few samples. Josep Maria
TestPortableOoRexx4wsl.rex
Description: Binary data
_______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
