<commit_before>require 'formula'

class DrushMake <Formula
  url 'http://ftp.drupal.org/files/projects/drush_make-6.x-2.0-beta8.tar.gz'
  homepage 'http://drupal.org/project/drush_make'
  md5 '75c2d4b1ae7f69f843d641723f4aae5a'
end

class Drush <Formula
  url 'http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz'
  homepage 'http://drupal.org/project/drush'
  version '3.1' # 3.1 is detected, but lets be explicit here
  md5 'e768e504674428879a047d8cfdd4926f'

  def install
    prefix.install Dir['*'] # No lib folder, so this is OK for now.
    bin.mkpath
    symlink prefix+'drush', bin+'drush'
    DrushMake.new.brew { (prefix+'commands/drush_make').install Dir['*'] }
  end
end<commit_msg>Patch drush_make command<commit_after>require 'formula'

class DrushMake <Formula
  url 'http://ftp.drupal.org/files/projects/drush_make-6.x-2.0-beta8.tar.gz'
  homepage 'http://drupal.org/project/drush_make'
  md5 '75c2d4b1ae7f69f843d641723f4aae5a'

  def patches
    DATA
  end
end

class Drush <Formula
  url 'http://ftp.drupal.org/files/projects/drush-6.x-3.1.tar.gz'
  homepage 'http://drupal.org/project/drush'
  version '3.1' # 3.1 is detected, but lets be explicit here
  md5 'e768e504674428879a047d8cfdd4926f'

  def install
    prefix.install Dir['*'] # No lib folder, so this is OK for now.
    bin.mkpath
    symlink prefix+'drush', bin+'drush'
    DrushMake.new.brew { (prefix+'commands/drush_make').install Dir['*'] }
  end
end

__END__
diff --git a/drush_make.download.inc b/drush_make.download.inc
index 99ff080..4a98166 100644
--- a/drush_make.download.inc
+++ b/drush_make.download.inc
@@ -162,7 +162,7 @@ class DrushMakeDownload_Get extends DrushMakeDownload {
       // Detect whether the user uses --strip-path or --strip-components
       $strip_option = drush_get_option('strip-option', FALSE);
       if (!$strip_option) {
-        drush_shell_exec("man tar | grep strip-component");
+        drush_shell_exec("man -t tar | grep strip-component");
         $info = drush_shell_exec_output();
         if ($info) {
           $strip_option = 'component';
{'fraction_non_alphanumeric': 0.13577274915743862, 'fraction_numerical': 0.06499759268175252, 'mean_word_length': 3.6075388026607538, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3549948', 'n_tokens_mistral': 859, 'n_tokens_neox': 795, 'n_words': 155}