Skip to content

Instantly share code, notes, and snippets.

@gilaras
Created March 11, 2010 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gilaras/329308 to your computer and use it in GitHub Desktop.
Save gilaras/329308 to your computer and use it in GitHub Desktop.
#!/bin/bash
## WARNING: YOUR ~/.m2 (local maven repository) WILL BE
## BROKEN UNLESS YOU MAKE A COPY OF IT.
## remove ~/.m2 if in doubt
# mv ~/.m2 "$HOME/.m2-$(date -R)"
# or just: rm -Rf ~/.m2
## install leiningen from git
mkdir /tmp/stuff
cd /tmp/stuff
git clone git://github.com/technomancy/leiningen.git
cd leiningen
mkdir -p bin/stable
wget http://github.com/technomancy/leiningen/raw/stable/bin/lein -O bin/stable/lein
chmod u+x bin/stable/lein
bin/stable/lein self-install
bin/stable/lein deps
bin/stable/lein install
export PATH="/tmp/stuff/leiningen/bin:$PATH"
## or:
# alias lein=/tmp/stuff/leiningen/bin/lein
## reproduce the bug
mkdir /tmp/bug
cd /tmp/bug
lein new foo
cd foo
lein deps
## now lein is broken!!! :
lein help
## clean up
# rm -Rf /tmp/stuff /tmp/bug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment