A shell script that I usually run after install SBCL

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. More…


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » A shell script that I usually run after install SBCL." Vee Satayamas | Sciencx - Sunday July 21, 2024, https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/
HARVARD
Vee Satayamas | Sciencx Sunday July 21, 2024 » A shell script that I usually run after install SBCL., viewed ,<https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/>
VANCOUVER
Vee Satayamas | Sciencx - » A shell script that I usually run after install SBCL. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/
CHICAGO
" » A shell script that I usually run after install SBCL." Vee Satayamas | Sciencx - Accessed . https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/
IEEE
" » A shell script that I usually run after install SBCL." Vee Satayamas | Sciencx [Online]. Available: https://www.scien.cx/2024/07/21/a-shell-script-that-i-usually-run-after-install-sbcl/. [Accessed: ]
rf:citation
» A shell script that I usually run after install SBCL | Vee Satayamas | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.