This content originally appeared on DEV Community and was authored by Vee Satayamas
I usually run this shell script after installing SBCL because to develop a program in Common Lisp practically, I usually need libraries. Thus, this script install Quicklisp and Ultralisp as a package manager and a package repository, respectively. Moreover, I set working directory for my Common Lisp projects to Develop in my home directory because when I put them in quicklisp/local-projects, I usually forget to backup or even forget where that the projects exist.
#!/bin/bash
# My working directory is $HOME/Develop. You probably want to change it.
rm -rf ~/quicklisp
rm quicklisp.lisp
wget https://beta.quicklisp.org/quicklisp.lisp
sbcl --load quicklisp.lisp \
--eval '(quicklisp-quickstart:install)' \
--eval '(ql-util:without-prompting (ql:add-to-init-file))' \
--quit
rm quicklisp.lisp
sbcl --eval '(ql-dist:install-dist "http://dist.ultralisp.org/" :prompt nil)' --quit
if [ -e ~/.config/common-lisp ]; then
cp -rp ~/.config/common-lisp ~/.config/common-lisp.bak-$(date -I)-$$
fi
mkdir -p ~/.config/common-lisp
cat <<EOF > ~/.config/common-lisp/source-registry.conf
(:source-registry
(:tree (:home "Develop"))
:inherit-configuration)
EOF
This content originally appeared on DEV Community and was authored by Vee Satayamas
Vee Satayamas | Sciencx (2024-07-21T14:58:53+00:00) A shell script that I usually run after install SBCL. Retrieved from https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.