From c4ee968151b0e9f30a08c5b3af6940a128a5ec22 Mon Sep 17 00:00:00 2001 From: Christopher Gervais Date: Sat, 4 May 2013 14:24:57 -0700 Subject: [PATCH] Set full version in Drupal module .info files. --- distmaker/dists/drupal_php5.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/distmaker/dists/drupal_php5.sh b/distmaker/dists/drupal_php5.sh index f80f3926c0..ac2c512180 100755 --- a/distmaker/dists/drupal_php5.sh +++ b/distmaker/dists/drupal_php5.sh @@ -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 "