Skip to content

Instantly share code, notes, and snippets.

@makimoto
Created June 29, 2011 06:28
Show Gist options
  • Save makimoto/1053268 to your computer and use it in GitHub Desktop.
Save makimoto/1053268 to your computer and use it in GitHub Desktop.
a patch for elastic-mapreduce-ruby's Homebrew formula
Common subdirectories: elastic-mapreduce-ruby.orig/amazon and elastic-mapreduce-ruby/amazon
Common subdirectories: elastic-mapreduce-ruby.orig/bin and elastic-mapreduce-ruby/bin
diff -c elastic-mapreduce-ruby.orig/elastic-mapreduce elastic-mapreduce-ruby/elastic-mapreduce
*** elastic-mapreduce-ruby.orig/elastic-mapreduce 2011-06-29 15:24:23.000000000 +0900
--- elastic-mapreduce-ruby/elastic-mapreduce 2011-06-29 15:25:00.000000000 +0900
***************
*** 2,8 ****
#
# Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
! $LOAD_PATH.unshift File.dirname(__FILE__)
require 'commands'
require 'simple_logger'
--- 2,16 ----
#
# Copyright 2008-2010 Amazon.com, Inc. or its affiliates. All Rights Reserved.
! file = __FILE__
! while File.symlink?(file)
! if File.readlink(file) =~ /^\//
! file = File.readlink(file)
! else
! file = "#{File.dirname(file)}/#{File.readlink(file)}"
! end
! end
! $LOAD_PATH.unshift File.dirname(file)
require 'commands'
require 'simple_logger'
Common subdirectories: elastic-mapreduce-ruby.orig/json and elastic-mapreduce-ruby/json
Common subdirectories: elastic-mapreduce-ruby.orig/samples and elastic-mapreduce-ruby/samples
Common subdirectories: elastic-mapreduce-ruby.orig/tests and elastic-mapreduce-ruby/tests
Common subdirectories: elastic-mapreduce-ruby.orig/uuidtools and elastic-mapreduce-ruby/uuidtools
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment