Created
March 11, 2010 16:30
-
-
Save gilaras/329308 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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