Created
December 5, 2012 01:53
-
-
Save nickleefly/4211356 to your computer and use it in GitHub Desktop.
get tar ball, install it
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
# | |
# Get and install <repo>. | |
# | |
get() { | |
local prev=`pwd` | |
local repo=$1 | |
rm -fr /tmp/get \ | |
&& mkdir /tmp/get \ | |
&& cd /tmp/get \ | |
&& curl -#L https://github.com/$repo/tarball/master \ | |
| tar zx --strip 1 \ | |
&& make install \ | |
&& cd $prev | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment