aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEalden Esto E. Escanan2011-10-21 20:20:45 +0800
committerAdam Vandenberg2012-01-29 16:54:04 -0800
commitda433e4fc73e2ff2bb935d36f1b94c3e5b45a625 (patch)
treec5fdb32c8b7d0ebba0484b244c44a70370432618
parent4989457471be4130d21116fc4f5abb7e225b9ef4 (diff)
downloadhomebrew-da433e4fc73e2ff2bb935d36f1b94c3e5b45a625.tar.bz2
google-sql-tool r9
Google SQL Tool is the command-line tool to connect to Google Cloud SQL, which provides relational databases for App Engine applications. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/google-sql-tool.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/google-sql-tool.rb b/Library/Formula/google-sql-tool.rb
new file mode 100644
index 000000000..4ea0d39ef
--- /dev/null
+++ b/Library/Formula/google-sql-tool.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class GoogleSqlTool < Formula
+ homepage 'https://developers.google.com/cloud-sql/docs/commandline'
+ url 'http://dl.google.com/cloudsql/tools/google_sql_tool.zip'
+ md5 'dc6a5a88e2163c3f2677c55d5aa502ff'
+ version 'r9'
+
+ def install
+ # Patch script to find jar
+ inreplace 'google_sql.sh',
+ 'SQL_SH_DIR="$(cd $(dirname $0); pwd)"',
+ "SQL_SH_DIR=\"#{libexec}\""
+
+ libexec.install %w(google_sql.sh google_sql.jar)
+
+ bin.mkpath
+ ln_s libexec+('google_sql.sh'), bin+'google_sql'
+ end
+end