Skip to content

Instantly share code, notes, and snippets.

@nickleefly
Created December 5, 2012 01:53
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 nickleefly/4211356 to your computer and use it in GitHub Desktop.
Save nickleefly/4211356 to your computer and use it in GitHub Desktop.
get tar ball, install it
#
# 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