Created
July 20, 2011 17:13
-
-
Save tarmolehtpuu/1095382 to your computer and use it in GitHub Desktop.
Quick hack to symlink ImageMagick binaries to /usr/bin (probably simplest way to fix it for Rubymine)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
PATH_SRC = "/usr/local/bin" | |
PATH_DST = "/usr/bin" | |
%w[animate compare composite conjure convert display identify import mogrify montage stream].each do |file| | |
if File.exists?("#{PATH_DST}/#{file}") | |
puts "[EXIST]: #{file}" | |
else | |
puts "[LINK] : #{file}" and system("ln -s #{PATH_SRC}/#{file} #{PATH_DST}/#{file}") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment