Install CRexsel on Linux

The command line Rexsel compiler (CRexsel) is in the form of a executable Swift Package that can be built with either the MacOS XCode system or via the Swift build command on Linux (or MacOS). CRexsel is held as a Git repository here here.

The instructions for building CRexsel is a relatively simple task. Once the Package is loaded the following Package contents should be present.

CRexsel ------- Sources ------- crexsel.swift | +--- Resources ------- xsl2rexsel.rxsl | +--- xsl2rexsel.xsl +--- Package.swift +--- README.md +--- build.sh

where

crexsel.swift the main crexsel program.
xsl2rexsel.rxsl the uncompiler stylesheet written in Rexsel (see Chapter \ref{sec:uncompilerExample}).
xsl2rexsel.xsl the compiled stylesheet for the uncompiler.
Package.swift the Package manifest (see Chapter \ref{sec:command}).
README.md the Package readme file (not complete at time of writing this).
build.sh a simple installer script can be be modified to cater for local conditions.
Running Installation Script

This script is designed to build the CRexsel package and compile the uncompiler. It should work on both MacOS and Linux systems, however it may be necessary to be run under superuser manually.

swift build cp -v .build/debug/crexsel /usr/local/bin crexsel Sources/Resources/xsl2rexsel.rxsl -e cp -v Sources/Resources/xsl2rexsel.xsl /usr/local/bin

It is designed to run only on Unix based systems at present. After the Package is built the binary application is sent to the "/usr/local/bin" directory.

Before running the installer script ensure that command /usr/bin/xsltproc" app is installed on both (it usually is on most MacOS and Linux systems).

Next the uncompiler script is built from the Rexsel script \xsl2rexsel.rxsl" and sent to xsl2rexsel.xsl" in the same folder (it is already there but this ensures that the latest version is used). Finally this XSL stylesheet is sent to the "/usr/local/bin" directory.

Copyright 2024 Hugh Field-Richards. All Rights Reserved.