Skip to content

Instantly share code, notes, and snippets.

@tj
Created November 2, 2012 03:51
Show Gist options
  • Save tj/3998613 to your computer and use it in GitHub Desktop.
Save tj/3998613 to your computer and use it in GitHub Desktop.
Install anything from Github with a `make install` target
#!/usr/bin/env bash
repo=$1
rm -fr /tmp/gpm \
&& mkdir /tmp/gpm \
&& cd /tmp/gpm \
&& curl -#L https://github.com/$repo/tarball/master \
| tar zx --strip 1 \
&& make install
@tj
Copy link
Author

tj commented Nov 2, 2012

ex:

  • gpm visionmedia/watch
  • gpm visionmedia/mon

etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment