? .git
? 821010_drush_make_md5.patch
? drush_make_includes.patch
? drush_make_md5.patch
Index: drush_make.drush.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.drush.inc,v
retrieving revision 1.11.2.40
diff -u -p -r1.11.2.40 drush_make.drush.inc
--- drush_make.drush.inc	25 Feb 2010 05:38:00 -0000	1.11.2.40
+++ drush_make.drush.inc	8 Jun 2010 00:03:27 -0000
@@ -34,6 +34,7 @@ function drush_make_drush_command() {
       'drush make example.make example' => 'Build the example.make makefile in the example directory.',
     ),
     'options' => array(
+      '--md5' => 'Output an md5 hash of the current build after completion.',
       '--contrib-destination=path' => 'Specify a path under which modules and themes should be placed. Defaults to sites/all.',
       '--force-complete' => 'Force a complete build even if errors occur.',
       '--no-clean' => 'Leave temporary build directories in place instead of cleaning up after completion.',
@@ -92,6 +93,9 @@ function drush_drush_make_make($makefile
   if (drush_get_option('prepare-install')) {
     $queue->addItem('drush_make_prepare_install', array(), array($tmp, $base_path));
   }
+  if (drush_get_option('md5')) {
+    $queue->addItem('drush_make_md5', array(), array($tmp));
+  }
   if (drush_get_option('tar')) {
     $queue->addItem('drush_make_tar', array(), array($tmp, $base_path));
   }
Index: drush_make.utilities.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.utilities.inc,v
retrieving revision 1.1.2.28
diff -u -p -r1.1.2.28 drush_make.utilities.inc
--- drush_make.utilities.inc	22 Apr 2010 23:30:14 -0000	1.1.2.28
+++ drush_make.utilities.inc	8 Jun 2010 00:03:27 -0000
@@ -253,6 +253,17 @@ function drush_make_prepare_install($tmp
   drush_shell_exec("chmod a+w %s %s", $default . '/settings.php', $default . '/files');
 }
 
+function drush_make_md5($tmp_path) {
+  if (drush_shell_exec("( find %s -type f -exec cksum {} \; )", $tmp_path)) {
+    $hashes = array();
+    foreach (drush_shell_exec_output() as $line) {
+      $hashes[] = array_shift(explode(' ', $line));
+    }
+    $output = implode("\n", $hashes);
+    drush_log(dt('Build hash: %md5', array('%md5' => md5($output))), 'ok');
+  }
+}
+
 function drush_make_tar($tmp_path, $base_path) {
   drush_make_fill_path(dirname($base_path));
   $filename = basename($base_path);
