diff --git a/rake/lib/sh.rb b/rake/lib/sh.rb index e9a80695..8b18fb95 100644 --- a/rake/lib/sh.rb +++ b/rake/lib/sh.rb @@ -12,3 +12,9 @@ def sh_safe(cmd) return false end end + +def do_link(src, dest) + if not (File.exist?(path_to_file) || File.symlink?(path_to_file)) + sh_safe "ln -sf #{src} #{dest}" + end +end