Permalink
Browse files

use env variable in compile step

  • Loading branch information...
1 parent 6738cc7 commit 7fbf61bb0baff5297439c8fcab4e5ff6b9ced9a8 @vdel26 vdel26 committed Oct 21, 2014
View
@@ -26,16 +26,16 @@ mkdir -p bin
mkdir -p packages
echo "-----> Copying lua to bin"
-cp "$OPT_DIR/lua" "bin/"
+cp "$OPT_DIR/$STACK/lua" "bin/"
echo "-----> Installing packages"
SITE_CONFIG="$OPT_DIR/luarocks/luarocks/site_config.lua"
if [ "$ENV" != "local" ]; then
- export PATH=$OPT_DIR:$PATH
+ export PATH=$OPT_DIR/$STACK:$PATH
echo "LUA_INCDIR=[[$OPT_DIR/../include]]" >> $SITE_CONFIG
- echo "LUA_LIBDIR=[[$OPT_DIR/../lib]]" >> $SITE_CONFIG
+ echo "LUA_LIBDIR=[[$OPT_DIR/../lib/$STACK/]]" >> $SITE_CONFIG
fi
# use sed because grep halts script with -e when there is no match
File renamed without changes.
View
Binary file not shown.
File renamed without changes.
View
Binary file not shown.

0 comments on commit 7fbf61b

Please sign in to comment.