Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Code Block
#!/usr/bin/env groovy

/**
 * Download and setup TextMate Bundle for groovy. Assume you have svn and groovy already installed.
 * @author Zemian Deng 
 * @since Thu Nov 15 15:02:11 EST 2007
 */

path = System.properties['user.home']+"/Library/Application Support/TextMate/Bundles"
dir = new File(path)
if(!dir.exists()){
	println "Creating path ${path}"
	dir.mkdirs()
}

println "Checking out groovy bundle..."
proc = "svn co http://macromates.com/svn/Bundles/trunk/Bundles/Groovy.tmbundle".execute(
	[ "LC_CTYPE=en_US.UTF-8" ],
	dir
)
proc.waitFor()
println proc.text

println "Verifying groovy bundle..."
dir.list().each{f-> println f}