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
|
#!/bin/sh
#
# Time-stamp: <2014-10-21 18:23:11 pdm>
#
# Copyright 2007 Luca Capello <luca@pca.it>
# 2011 Desmond O. Chang <dochang@gmail.com>
# This file is part of the Debian StumpWM package and is licensed
# under the terms of the GNU GPL version 2 or later. Check
# /usr/share/doc/stumpwm/copyright for more information.
#
# StumpWM startup file. Check /usr/share/doc/stumpwm/README.Debian
# to know how to setup your ~/.stumpwmrc file to define the Common
# Lisp implementation StumpWM should use.
LOADER="/usr/lib/stumpwm/load.lisp"
load_lisp() {
case "$1" in
cmucl)
cmucl -load "$LOADER"
;;
sbcl)
sbcl --load "$LOADER"
;;
clisp)
clisp "$LOADER"
;;
*)
echo "Unkown Common Lisp implementation."
exit 1
;;
esac
}
if [ -z "$LISP" ]; then
LISP_STUMPWMRC_TMP="`grep --no-messages debian= $HOME/.stumpwmrc`"
LISP_STUMPWMRC=${LISP_STUMPWMRC_TMP##*=}
LISP=${LISP_STUMPWMRC:-sbcl}
fi
if ! which $LISP >/dev/null; then
echo "CL implementation $LISP not found in your \$PATH."
exit 1
fi
load_lisp $LISP
exit 0
|