Skip to content

Commit

Permalink
readme / install tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Dec 8, 2009
1 parent 8466968 commit 6633a3b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -43,12 +43,12 @@ Or from source:

$ git clone git://github.com/defunkt/hub.git
$ cd hub
$ rake install
$ rake setup

Once you've installed `hub`, you can invoke it directly from the
command line:

$ hub --version
$ hub version

To get the full experience, alias your `git` command to run `hub` by
placing the following in your `.bash_profile` (or relevant startup
Expand Down
17 changes: 17 additions & 0 deletions Rakefile
Expand Up @@ -17,6 +17,23 @@ end
desc "Build a gem"
task :gem => [ :gemspec, :build ]

desc "Install `hub`"
task :setup => :standalone do
path = ENV['BINPATH'] || %w( ~/bin /usr/local/bin /usr/bin ).detect do |dir|
File.directory? File.expand_path(dir)
end

if path
puts "Installing into #{path}"
cp "standalone", hub = File.expand_path(File.join(path, 'hub'))
chmod 0755, hub
puts "Done. Type `hub version` to see if it worked!"
else
puts "** Can't find a suitable installation location."
abort "** Please set the BINPATH env variable and try again."
end
end

begin
require 'jeweler'
$LOAD_PATH.unshift 'lib'
Expand Down

0 comments on commit 6633a3b

Please sign in to comment.