Skip to content

Instantly share code, notes, and snippets.

@nickleefly
Created December 5, 2012 01:53
Show Gist options
  • 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