Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detecting an installed Common Lisp implementation programmatically

I'm writing a Common Lisp application. I'd like to have a Bash script which will serve as the entry point to the application. Currently, I've written the script so that the user must pass in their name of the Common Lisp implementation to run it, so I would write ./script.sh clisp for GNU CLISP but someone with SBCL would have to write ./script.sh sbcl. This is necessary since, unlike languages like Python and Ruby, Common Lisp implementations do not have any standard name or standardized way of invoking them.

Is there any trick to detecting which Common Lisp implementation is installed, perhaps an environment variable or something? Basically, I'm looking for something better than forcing the user to pass in the name of the implementation.

like image 868
Silvio Mayolo Avatar asked Jun 09 '16 23:06

Silvio Mayolo


1 Answers

You could use Roswell, which provides ways to set the implementation on a user or invocation level. You still need wrapper scripts, but roswell standardizes them.

like image 179
Svante Avatar answered Sep 24 '22 01:09

Svante