diff options
| author | Stephen Haynes | 2010-09-03 15:36:41 +1000 |
|---|---|---|
| committer | David Höppner | 2010-09-03 18:43:51 +0200 |
| commit | bb3ab7ecea20282561f4666a8d304bd948ca059b (patch) | |
| tree | af596d405c522887081212f9a2256f74995b9602 /Library/Formula | |
| parent | f64c1adb3f4e7c350af24abd7adf8935d92d5c8f (diff) | |
| download | homebrew-bb3ab7ecea20282561f4666a8d304bd948ca059b.tar.bz2 | |
ec2-api-tools: Snow Leopard patch is no longer required
Signed-off-by: David Höppner <0xffea@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/ec2-api-tools.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/Library/Formula/ec2-api-tools.rb b/Library/Formula/ec2-api-tools.rb index 4a1cad658..c05b3a410 100644 --- a/Library/Formula/ec2-api-tools.rb +++ b/Library/Formula/ec2-api-tools.rb @@ -44,13 +44,6 @@ class Ec2ApiTools <AmazonWebServicesFormula url 'http://ec2-downloads.s3.amazonaws.com/ec2-api-tools-1.3-53907.zip' md5 'ae07fe9e46423d57ab43a121750f0067' - def patches - # Gets rid of the "[Deprecated] Xalan: org.apache.xml.res.XMLErrorResources_en_US" - # messages that the tools spew on 1.3-41620 under Snow Leopard - # See: http://gist.github.com/200283 - DATA - end - def install standard_install end @@ -59,24 +52,3 @@ class Ec2ApiTools <AmazonWebServicesFormula standard_instructions "EC2_HOME" end end - -__END__ -diff --git i/bin/ec2-cmd w/bin/ec2-cmd -index 57051eb..edc2aae 100755 ---- i/bin/ec2-cmd -+++ w/bin/ec2-cmd -@@ -58,4 +58,13 @@ fi - - CMD=$1 - shift --"$JAVA_HOME/bin/java" $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@" -+ -+# to filter out the "deprecated" warnings introduced by Snow Leopard... -+exec 3>&1 # ... redirect fd3 to stdout -+exec 4>&2 # ... redirect fd4 to stderr -+ -+# ... execute the java, sending stderr to stdout (so it gets grepped), -+# but stdout goes to fd3 (the preserved real stdout) -+# and the grepped output goes to fd4 (the preserved stderr) -+"$JAVA_HOME/bin/java" $EC2_JVM_ARGS $cygprop -classpath "$CP" com.amazon.aes.webservices.client.cmd.$CMD "$@" \ -+ 2>&1 >&3 | grep -v '^\[Deprecated\] Xalan' >&4 |
