Browse files

Check lein versions. Build fails on lein 2.0

  • Loading branch information...
1 parent 96901ce commit 0af3675035e4a9f266b43fc13fc94706e0002eda @gunnarahlberg committed Jan 17, 2014
Showing with 11 additions and 0 deletions.
  1. +3 −0 linux_deps.sh
  2. +3 −0 osx_deps.sh
  3. +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
+le 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
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
+le 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 0af3675

Please sign in to comment.