From daa50470f8565d0800ac3bc09449599c8a517e64 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 22 Feb 2017 20:47:41 +0100 Subject: [PATCH] Use local lein for frontend dist scripts. --- frontend/scripts/dist-main | 6 +++++- frontend/scripts/dist-view | 6 +++++- frontend/scripts/dist-worker | 6 +++++- frontend/scripts/figwheel | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/frontend/scripts/dist-main b/frontend/scripts/dist-main index 60c8dace0..125569f58 100755 --- a/frontend/scripts/dist-main +++ b/frontend/scripts/dist-main @@ -1,5 +1,9 @@ #!/bin/sh -lein trampoline run -m clojure.main scripts/dist-main.clj + +DIR=`dirname $0` +LEIN="$DIR/lein" + +LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-main.clj if [ -x "$(command -v gzip)" ]; then gzip -9c dist/js/main.js > dist/js/main.js.gz diff --git a/frontend/scripts/dist-view b/frontend/scripts/dist-view index 8107d713a..d844a967f 100755 --- a/frontend/scripts/dist-view +++ b/frontend/scripts/dist-view @@ -1,5 +1,9 @@ #!/bin/sh -lein trampoline run -m clojure.main scripts/dist-view.clj + +DIR=`dirname $0` +LEIN="$DIR/lein" + +LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-view.clj if [ -x "$(command -v gzip)" ]; then gzip -9c dist/js/view.js > dist/js/view.js.gz diff --git a/frontend/scripts/dist-worker b/frontend/scripts/dist-worker index 5dd2a87f1..60ae48cbd 100755 --- a/frontend/scripts/dist-worker +++ b/frontend/scripts/dist-worker @@ -1,5 +1,9 @@ #!/bin/sh -lein trampoline run -m clojure.main scripts/dist-worker.clj + +DIR=`dirname $0` +LEIN="$DIR/lein" + +LEIN_FAST_TRAMPOLINE=y $LEIN trampoline run -m clojure.main scripts/dist-worker.clj if [ -x "$(command -v gzip)" ]; then gzip -9c dist/js/worker.js > dist/js/worker.js.gz diff --git a/frontend/scripts/figwheel b/frontend/scripts/figwheel index ae3c3eb55..783e6592b 100755 --- a/frontend/scripts/figwheel +++ b/frontend/scripts/figwheel @@ -1,7 +1,11 @@ #!/usr/bin/env bash + +DIR=`dirname $0` +LEIN="$DIR/lein" + RLWRAP=`which rlwrap` if [ $? != 0 ]; then RLWRAP=""; fi -$RLWRAP lein trampoline run -m clojure.main scripts/figwheel.clj || exit 1 +LEIN_FAST_TRAMPOLINE=y $RLWRAP $LEIN trampoline run -m clojure.main scripts/figwheel.clj || exit 1