-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathscando-zeus-install
executable file
·36 lines (28 loc) · 1.51 KB
/
scando-zeus-install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
ninja -C build
mkdir -p "$HOME/.local/bin" # TODO Check to see if it is in the path
export CANDO_DATA=$HOME/work/
if [ ! -f "$HOME/quicklisp/setup.lisp" ]; then
echo "Installing Quicklisp..."
tmpfile=$(mktemp)
curl -fsLo $tmpfile https://beta.quicklisp.org/quicklisp.lisp
clasp --non-interactive --load $tmpfile --eval "(quicklisp-quickstart:install)" --eval "(ql-util:without-prompting (ql:add-to-init-file))"
rm $tmpfile
elif [ ! -f "$HOME/.clasprc" ]; then
echo "Creating clasprc..."
clasp --non-interactive --load $HOME/quicklisp/setup.lisp --eval "(ql-util:without-prompting (ql:add-to-init-file))"
fi
echo "Updating Quicklisp..."
clasp --non-interactive --eval "(unless (ql-dist:find-dist \"quickclasp\") (ql-dist:install-dist \"http://quickclasp.thirdlaw.tech/quickclasp.txt\" :prompt nil))" \
--eval "(ql:update-all-dists :prompt nil)"
#if [ ! -d "~/.config/common-lisp/source-registry.conf.d/" ]; then
# mkdir -p ~/.config/common-lisp/source-registry.conf.d
# echo "(:tree \"/home/cando/common-lisp/\")" >~/.config/common-lisp/source-registry.conf.d/apptainer.conf
#fi
echo "Installing CANDO user features..."
cando --eval "(ql:quickload :cando-jupyter)" \
--eval "(ql:quickload :ngl-clj)" \
--eval "(ql:quickload :spiros-rotamers)" \
--eval "(ql:quickload :amber-protein-rotamers)" \
--eval "(cando-jupyter:install :bin-path \"$HOME/Development/cando/build/boehmprecise/cando\" :implementation \"scando\" :image t)"
#--eval "(ext:start-autocompilation)" \