fix installation so that class is always reinstalled, even if already exists
This commit is contained in:
parent
ada7b34a3e
commit
431bfd50f9
|
@ -18,9 +18,12 @@ puts "Textmate SuperCollider bundle<br/>"
|
||||||
puts "by <a href='http://rfwatson.github.com'>R.Watson</a>.<br/>"
|
puts "by <a href='http://rfwatson.github.com'>R.Watson</a>.<br/>"
|
||||||
puts "=======================================<br/><br/>"
|
puts "=======================================<br/><br/>"
|
||||||
|
|
||||||
if File.exists?(File.expand_path("~/Library/Application Support/SuperCollider/Extensions/TextMate.sc"))
|
fname = File.expand_path("~/Library/Application Support/SuperCollider/Extensions/TextMate.sc")
|
||||||
puts "<span style='color:green'>SuperCollider bundle already installed</span>.<br/>"
|
if File.exists?(fname)
|
||||||
else
|
#puts "<span style='color:green'>SuperCollider bundle already installed</span>.<br/>"
|
||||||
|
File.rename(fname, fname + '.bak')
|
||||||
|
end
|
||||||
|
|
||||||
if not File.directory?(File.expand_path("~/Library/Application Support/SuperCollider/Extensions"))
|
if not File.directory?(File.expand_path("~/Library/Application Support/SuperCollider/Extensions"))
|
||||||
could_not_locate
|
could_not_locate
|
||||||
else
|
else
|
||||||
|
@ -32,7 +35,7 @@ else
|
||||||
could_not_locate
|
could_not_locate
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
</string>
|
</string>
|
||||||
<key>fallbackInput</key>
|
<key>fallbackInput</key>
|
||||||
<string>document</string>
|
<string>document</string>
|
||||||
|
|
Loading…
Reference in New Issue