forked from andreer/lispbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrite-lispbox.sh
executable file
·57 lines (48 loc) · 1.82 KB
/
write-lispbox.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/sh
echo "#!/bin/bash"
cat <<EOF
if [ "\${0:0:2}" = "./" ]; then
export LISPBOX_HOME=\`pwd\`${LISPBOX_HOME_RELATIVE}
else
export LISPBOX_HOME=\`dirname \$0\`${LISPBOX_HOME_RELATIVE}
fi
EOF
if [ ! -z "${SBCL_DIR}" ]; then
cat <<EOF
export SBCL_HOME=\${LISPBOX_HOME}/${SBCL_DIR}/lib/sbcl
EOF
fi
if [ ! -z "${OPENMCL_DIR}" ]; then
cat <<EOF
export CCL_DEFAULT_DIRECTORY=\${LISPBOX_HOME}/${OPENMCL_DIR}
EOF
fi
if [ ! -z "${LINUX}" ]; then
cat <<EOF
export EMACSDATA=\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/etc/
export EMACSDOC=\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/etc/
export EMACSLOADPATH=\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/site-lisp:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/site-lisp:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/leim:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/toolbar:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/textmodes:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/progmodes:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/play:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/obsolete:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/net:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/mail:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/language:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/international:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/gnus:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/eshell:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/emulation:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/emacs-lisp:\\
\${LISPBOX_HOME}/${EMACS}/share/emacs/23.2/lisp/calendar
PATH=\$PATH:\${LISPBOX_HOME}/libexec/emacs/23.2/i686-pc-linux-gnu
EOF
fi
cat <<EOF
exec \${LISPBOX_HOME}/${EMACS_EXE} --no-init-file --no-site-file --eval='(progn (load "lispbox") (slime))'
EOF