Skip to content
Browse files

Check lein versions. Build fails on lein 2.0

  • Loading branch information...
2 parents fe9103a + 472e98f commit f86a342f50f6d63d7a210afc57e8f0aaabbfe011 @ibdknox ibdknox committed with Jan 13, 2014
Showing with 12 additions and 1 deletion.
  1. +3 −0 linux_deps.sh
  2. +3 −0 osx_deps.sh
  3. +1 −1 src/lt/objs/editor/pool.cljs
  4. +5 −0 windows_deps.sh
View
3 linux_deps.sh
@@ -1,5 +1,8 @@
# Check if lein is installed
lein version >/dev/null 2>&1 || { echo >&2 "Please install leiningen before running this script."; exit 1; }
+if [ "$(echo `lein version` | grep 'Leiningen 1.\|2.0')" ]; then
+ echo "lein version must be 2.1 or above. Do a lein upgrade first"; exit 1;
+fi
echo "### Fetching binaries ###"
TARBALL=LightTableLinux$(getconf LONG_BIT).tar.gz
View
3 osx_deps.sh
@@ -1,5 +1,8 @@
# Check if lein is installed
lein version >/dev/null 2>&1 || { echo >&2 "Please install leiningen before running this script."; exit 1; }
+if [ "$(echo `lein version` | grep 'Leiningen 1.\|2.0')" ]; then
+ echo "lein version must be 2.1 or above. Do a lein upgrade first"; exit 1;
+fi
#get the LightTable.app binary
curl -O http://d35ac8ww5dfjyg.cloudfront.net/playground/bins/0.6.0/LightTableMac.zip
View
2 src/lt/objs/editor/pool.cljs
@@ -130,7 +130,7 @@
(when-not (doc/check-mtime (doc/->stats f) stat)
(if (:dirty @ed)
(active-warn ed {:header "This file has been modified."
- :body "This file seems to have been modified outside of Light Table. Do you want to load the latest and lose your changs?"
+ :body "This file seems to have been modified outside of Light Table. Do you want to load the latest and lose your changes?"
:buttons [{:label "Reload from disk"
:action (fn []
(reload ed))}
View
5 windows_deps.sh
@@ -8,6 +8,11 @@ rm -rf deploy
mv LightTable deploy
chmod u+rwx deploy
+lein version >/dev/null 2>&1 || { echo >&2 "Please install leiningen before running this script."; exit 1; }
+if [ "$(echo `lein version` | grep 'Leiningen 1.\|2.0')" ]; then
+ echo "lein version must be 2.1 or above. Do a lein upgrade first"; exit 1;
+fi
+
echo "### Building cljs ###"
lein cljsbuild clean && lein cljsbuild once

0 comments on commit f86a342

Please sign in to comment.
Something went wrong with that request. Please try again.