Skip to content

Commit

Permalink
CRM-16421 - distmaker - Simplify shared code
Browse files Browse the repository at this point in the history
  • Loading branch information
totten authored and sluc23 committed Jan 10, 2018
1 parent 2f5d488 commit f971546
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions distmaker/dists/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,7 @@ function dm_install_drupal() {
# Set full version in .info files. See CRM-15768.
local MODULE_DIRS=`find "$to" -type f -name "*.info"`
for INFO in $MODULE_DIRS; do
if [ $(uname) = "Darwin" ]; then
## BSD sed
sed -i '' "s/version = \([0-9]*\.x-\)[1-9.]*/version = \1$DM_VERSION/g" $INFO
else
## GNU sed
sed -i'' "s/version = \([0-9]*\.x-\)[1-9.]*/version = \1$DM_VERSION/g" $INFO
fi
dm_preg_edit '/version = ([0-9]*\.x)-[1-9.]*/m' "version = \$1-$DM_VERSION" "$INFO"
done

for f in "$to/.gitignore" "$to/.toxic.json" ; do
Expand Down

0 comments on commit f971546

Please sign in to comment.