Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-07-31-15-53-16
[civicrm-core.git] / distmaker / dists / drupal_php5.sh
index c18fa61bf1137d1a87b1c50834585a5cc2d9cead..ac2c512180148bf818626237a2fafafb5fb1225e 100755 (executable)
@@ -61,10 +61,17 @@ set -e
 cp $SRC/agpl-3.0.txt $TRG
 cp $SRC/gpl.txt $TRG
 cp $SRC/README.txt $TRG
-cp $SRC/Sponsors.txt $TRG
+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( ) {