Set full version in Drupal module .info files.
authorChristopher Gervais <chris@ergonlogic.com>
Sat, 4 May 2013 21:24:57 +0000 (14:24 -0700)
committerChristopher Gervais <chris@ergonlogic.com>
Sat, 4 May 2013 21:24:57 +0000 (14:24 -0700)
distmaker/dists/drupal_php5.sh

index f80f3926c0f7912b7165746ce50b2477795230b1..ac2c512180148bf818626237a2fafafb5fb1225e 100755 (executable)
@@ -65,6 +65,13 @@ cp $SRC/CONTRIBUTORS.txt $TRG
 cp $SRC/agpl-3.0.exception.txt $TRG
 cp $SRC/drupal/civicrm.config.php.drupal $TRG/civicrm.config.php
 
+# set full version in .info files
+MODULE_DIRS=`find "$DM_SOURCEDIR/drupal" -type f -name "*.info"`
+for INFO in $MODULE_DIRS; do
+  sed -i "s/version = [1-9.]*/version = $DM_VERSION/g" $INFO
+done
+
+
 # final touch
 echo "<?php
 function civicrmVersion( ) {