2012-12-31 10:03:41 +02:00
|
|
|
########## CONFIGURATION VALUES ##########
|
|
|
|
|
2013-02-01 10:47:37 -05:00
|
|
|
# TMP_GIT_CLONE _must_ match one of the following in coleslawrc:
|
2012-12-31 10:03:41 +02:00
|
|
|
# * The :repo argument (for a single-site setup) _or_
|
|
|
|
# * An alist key (for a multi-site setup)
|
|
|
|
TMP_GIT_CLONE=$HOME/tmp/improvedmeans/
|
|
|
|
|
|
|
|
# Set LISP to your preferred implementation. The following
|
|
|
|
# implementations are currently supported:
|
|
|
|
# * sbcl
|
|
|
|
# * ccl
|
|
|
|
LISP=sbcl
|
|
|
|
|
|
|
|
########## DON'T EDIT ANYTHING BELOW THIS LINE ##########
|
|
|
|
|
|
|
|
if cd `dirname "$0"`/..; then
|
|
|
|
GIT_REPO=`pwd`
|
|
|
|
cd $OLDPWD || exit 1
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
git clone $GIT_REPO $TMP_GIT_CLONE || exit 1
|
|
|
|
|
|
|
|
if [ $LISP = sbcl ]; then
|
2013-02-01 10:47:37 -05:00
|
|
|
sbcl --eval "(ql:quickload 'coleslaw)" \
|
|
|
|
--eval "(coleslaw:main \"$TMP_GIT_CLONE\")" \
|
|
|
|
--eval "(coleslaw::exit)"
|
2012-12-31 10:03:41 +02:00
|
|
|
elif [ $LISP = ccl ]; then
|
2013-02-01 10:47:37 -05:00
|
|
|
echo "(ql:quickload 'coleslaw)(coleslaw:main \"$TMP_GIT_CLONE\")(coleslaw::exit)" | ccl -b
|
2012-12-31 10:03:41 +02:00
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
rm -rf $TMP_GIT_CLONE
|
|
|
|
exit
|