cv / git-utils
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
5322b45
git-utils / Rakefile
| e2d4088c » | cv | 2008-07-23 | 1 | task :default do | |
| 2 | git = `which git`.strip | ||||
| 3 | raise "Could not find git - is it in the path? Try 'which git'." unless File.exists?(git) | ||||
| 4 | |||||
| 5 | git_path = File.dirname(git) | ||||
| 6 | raise "Permission denied - #{git_path} is not writable. Try 'sudo rake' or set the permissions accordingly." unless File.writable?(git_path) | ||||
| 7 | |||||
| 8 | Dir['git-*'].each do |file| | ||||
| 9 | cp file, git_path | ||||
| 10 | end | ||||
| 11 | end | ||||
