Enclosed please find two Rexx scripts that may help Linux users to create, install and remove release or debug versions of ooRexx.
The source tree of ooRexx is expected to be located in "~/dev", i.e. "~/dev/oorexx-code-0/main/trunk". To create a debug version, run without an argument (subdirectory "debug" will contain the debug version) or any argument (subdirectory "release" will contain the debug version). After running the script, study the output which gives instructions about creating the binaries and installation packages including the commands to install, list or remove ooRexx. Maybe this helps you save time in doing it for the first time or at long time intervals where in between you might have forgotten these details like I regularly do ... :) ---rony P.S.: The enclosed file "linkRexx.rex" just creates symbolic links in /usr/lib to allow Rexx binaries that got compiled with earlier versions of Rexx to become able to un under the latest ooRexx.
/* 2018-07-31, rgf; cf. <https://sourceforge.net/p/oorexx/wiki/how-to-build-oorexx/> -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_BUILD_TYPE=DEBUG */ parse arg typeOfBinary bDebug=(typeOfBinary="") -- if no arg given, create a debug version source="~/dev/oorexx-code-0/main/trunk" tgtDir="~/dev/orxdbg" say if bDebug then do cmd="cmake -DCMAKE_BUILD_TYPE=DEBUG" dirName="debug" end else do cmd="cmake -DCMAKE_BUILD_TYPE=RELEASE" dirName="release" end say "creating CMake stuff for the '"dirName"' version ..." if sysFileExists(dirName)=.false then call sysMkDir dirName call directory dirName -- change into directory say cmd source cmd source -- execute cmake to cretate say say "to create binary files change into the directory '"dirName"' and enter: 'make'" say say .resources~createInstallerInfos~toString~changeStr("@path-2-sourcedir", source) ::resource createInstallerInfos On Linux run the following commands to build an rpm: # OS_DIST is optional on the following command. It is used to # modify the install package name. cmake -DBUILD_RPM=1 -DOS_DIST=fedora @path-2-sourcedir make cpack ./ to install: install: sudo rpm -ivh ./ooRexx-5.0.0-0.ubuntu.x86_64.rpm upgrade: sudo rpm -U ./ooRexx-5.0.0-0.ubuntu.x86_64.rpm list : rpm -q oorexx listfiles: rpm -ql oorexx listall: rpm -qa remove : sudo rpm -e oorexx On Linux run the following commands to build a deb: # OS_DIST is optional on the following command. It is used to # modify the install package name. cmake -DBUILD_DEB=1 -DOS_DIST=ubuntu @path-2-sourcedir make cpack ./ to install: install: sudo dpkg -i ./ooRexx-5.0.0-0.ubuntu.x86_64.deb list : dpkg -l oorexx listfiles: dpkg -L oorexx remove : sudo dpkg -r oorexx ::END
ln="ln -fs" str="libhostemu.so liborxncurses.so librexxapi.so librexx.so librexxutil.so librxmath.so librxregexp.so librxsock6.so librxsock.so librxunixsys.so" do i=1 to words(str) lib=word(str,i) do k=2 to 4 cmd=ln lib lib"."k say cmd cmd -- carry out the command end say end
_______________________________________________ Oorexx-devel mailing list Oorexx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-devel