Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
fix(rake): Fix Windows mlink path separators from '/' to '\'
Browse files Browse the repository at this point in the history
  • Loading branch information
jayharris committed Apr 10, 2015
1 parent bc27818 commit 859d474
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ task :link_vim_conf_files do
source = expand("../janus/vim/#{file}", __FILE__)
if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
require 'open3'
dest = dest.gsub(?/, ?\\)
source = source.gsub(?/, ?\\)
stdin, stdout, stderr, wait_thr = Open3.popen3('cmd.exe', "/c mklink #{dest} #{source}")
wait_thr.value.exitstatus
else
Expand Down

0 comments on commit 859d474

Please sign in to comment.