Bash script to install the setlX interpreter on UNIX like Operating systems.
This script is based on the official instruction on how to install setlX, which can be found here: SetlX Official Website
Since the script is still under development, there are not many features. It is currently only working for Linux. It will work on macOS soon.
You need to be root to execute the script, since you are copying files to /usr/local/
and changing the access permissions in order to make it executable. You also need to restart your computer to be able to use the setlX
command.
Packages required: wget or curl, java
You are able to edit the script to change the setlX-version and the paths. By default, the values are:
setlx_version=2-5-1
TmpDir="$HOME/tmp/setlX"
JarDir="/usr/local/setlX/"
LibDir="$HOME/setlXlibrary"
BinDir="/usr/local/bin"
The TmpDir
variable is used to check for a temporary folder.
The setlX-binary will be downloaded and unzipped to $HOME/tmp/setlX
by default.
This folder will not be deleted after the installation has been finished!
If you want to change the path for the jar-files or the library-files, just change the paths for the JarDir
and LibDir
variables. Right now, you also have to change the paths in the following two lines by hand:
sed -i 's/setlXJarDirectory\=\"\.\"/setlXJarDirectory\=\"\/usr\/local\/setlX\/\"/' ${TmpDir}/setlX
sed -i 's/setlXlibraryPath\=\"\$HOME\/setlXlibrary\/\"/setlXlibraryPath\=\"\$HOME\/setlXlibrary\/\"/' ${TmpDir}/setlX