local repo="$1"
local to="$2"
- for dir in ang css i js PEAR templates bin CRM api extern Reports install settings Civi partials release-notes ; do
+ for dir in ang css i js PEAR templates bin CRM api extern Reports install settings Civi partials release-notes xml ; do
[ -d "$repo/$dir" ] && dm_install_dir "$repo/$dir" "$to/$dir"
done
local to="$2"
local excludes_rsync=""
- for exclude in .git .svn {T,t}est{,s} {D,d}oc{,s} {E,e}xample{,s} ; do
+ ## CRM-21729 - .idea test-cases unit-test come from phpquery package.
+ for exclude in .git .svn {T,t}est{,s} {D,d}oc{,s} {E,e}xample{,s} .idea test-cases unit-test; do
excludes_rsync="--exclude=${exclude} ${excludes_rsync}"
done
# final touch
echo "<?php
+/** @deprecated */
function civicrmVersion( ) {
return array( 'version' => '$DM_VERSION',
'cms' => '$ufname',
popd
}
+## Download a Civi extension
+## usage: dm_install_cvext <full-ext-key> <target-path>
+function dm_install_cvext() {
+ # cv dl -b '@https://civicrm.org/extdir/ver=4.7.25|cms=Drupal/com.iatspayments.civicrm.xml' --destination=$PWD/iatspayments
+ cv dl -b "@https://civicrm.org/extdir/ver=$DM_VERSION|cms=Drupal/$1.xml" --to="$2"
+}
+
## Edit a file by applying a regular expression.
## Note: We'd rather just call "sed", but it differs on GNU+BSD.
## usage: dm_preg_edit <search-pattern> <replacement-pattern> <file>