Permalink
Browse files

use XDG_CACHE_HOME to locate quicklisp binaries where they will actua…

…lly do some good...
  • Loading branch information...
1 parent 18a1fa8 commit fe2d7cef010263ccecd1852ec1d2f5ca4c8ae722 @mtravers mtravers committed Feb 23, 2012
Showing with 10 additions and 4 deletions.
  1. +9 −4 bin/compile
  2. +1 −0 bin/release
View
13 bin/compile
@@ -21,8 +21,9 @@ CCL_PACKAGE="http://${S3_BUCKET}.s3.amazonaws.com/ccl-1.7.tgz"
# parse and derive params
BUILD_DIR=$1
CACHE_DIR=$2
-CACHE_QUICKLISP_DIR="$CACHE_DIR/quicklisp/"
-BUILD_QUICKLISP_DIR="$BUILD_DIR/quicklisp/"
+# CACHE_QUICKLISP_DIR="$CACHE_DIR/quicklisp/"
+# BUILD_QUICKLISP_DIR="$BUILD_DIR/quicklisp/"
+export XDG_CACHE_HOME="$CACHE_DIR/xdg-cache/"
CCL_DIR="$CACHE_DIR/ccl"
@@ -68,12 +69,16 @@ echo "-----> Installing dependencies with quicklisp"
# run lisp to load quicklisp packages
+export XDG_CACHE_HOME
export CCL_DEFAULT_DIRECTORY=$CCL_DIR
$CCL_DEFAULT_DIRECTORY/scripts/ccl64 -l "$BUILD_DIR/setup/compile.lisp"
echo "dependencies installed" | indent
# copy quicklisp to slug
-if [ -d $CACHE_QUICKLISP_DIR ]; then
- cp -r $CACHE_QUICKLISP_DIR $BUILD_QUICKLISP_DIR
+#if [ -d $CACHE_QUICKLISP_DIR ]; then
+# cp -r $CACHE_QUICKLISP_DIR $BUILD_QUICKLISP_DIR
+#fi
+if [ -d $XDG_CACHE_HOME ]; then
+ cp -r $XDG_CACHE_HOME $BUILD_DIR
fi
View
1 bin/release
@@ -9,6 +9,7 @@ addons:
config_vars:
PATH: bin:/usr/bin:/bin
CCL_DEFAULT_DIRECTORY: ccl
+ XDG_CACHE_HOME: xdg-cache
default_process_types:
web: setup/launch -b -l setup/run.lisp
EOF

0 comments on commit fe2d7ce

Please sign in to comment.