Permalink
Browse files

Allow custom BUILD_COMMAND.

  • Loading branch information...
technomancy committed Aug 20, 2012
1 parent c723577 commit c3ea9be5d64788a6ef7d6f222a41c9bb0e397930
Showing with 7 additions and 5 deletions.
  1. +7 −5 bin/compile
View
@@ -73,11 +73,13 @@ fi
echo "-----> Building with Leiningen"
# Calculate build command
-if [ -x $BUILD_DIR/bin/build ]; then
- echo " Found bin/build; running it instead of default lein invocation."
- BUILD_COMMAND=bin/build
-else
- BUILD_COMMAND="lein $LEIN_BUILD_TASK"
+if [ "$BUILD_COMMAND" != "" ]; then
+ if [ -x $BUILD_DIR/bin/build ]; then
+ echo " Found bin/build; running it instead of default lein invocation."
+ BUILD_COMMAND=bin/build
+ else
+ BUILD_COMMAND="lein $LEIN_BUILD_TASK"
+ fi
fi
echo " Running: $BUILD_COMMAND"

0 comments on commit c3ea9be

Please sign in to comment.