Skip to content

Commit

Permalink
The .sym file extension is already take - CURSE YOU BORLAND!!
Browse files Browse the repository at this point in the history
Using the original .symlink file extension instead.
  • Loading branch information
TwP committed Jan 24, 2012
1 parent 4f279d4 commit 26b50c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require 'rake'


desc "Hook our dotfiles into system-standard positions." desc "Hook our dotfiles into system-standard positions."
task :install do task :install do
linkables = Dir.glob('*/**{.sym}') linkables = Dir.glob('*/**{.symlink}')


skip_all = false skip_all = false
overwrite_all = false overwrite_all = false
Expand All @@ -12,7 +12,7 @@ task :install do
overwrite = false overwrite = false
backup = false backup = false


file = linkable.split('/').last.split('.sym').last file = linkable.split('/').last.split('.symlink').last
target = "#{ENV["HOME"]}/.#{file}" target = "#{ENV["HOME"]}/.#{file}"


if File.exists?(target) || File.symlink?(target) if File.exists?(target) || File.symlink?(target)
Expand All @@ -36,9 +36,9 @@ end


task :uninstall do task :uninstall do


Dir.glob('**/*.sym').each do |linkable| Dir.glob('**/*.symlink').each do |linkable|


file = linkable.split('/').last.split('.sym').last file = linkable.split('/').last.split('.symlink').last
target = "#{ENV["HOME"]}/.#{file}" target = "#{ENV["HOME"]}/.#{file}"


# Remove all symlinks created during installation # Remove all symlinks created during installation
Expand Down

0 comments on commit 26b50c4

Please sign in to comment.