DM_TMPDIR= <Set this to temporary directory>
DM_TARGETDIR= <Set this to directory where tarballs should land>
-DM_PHP= <Set this to your php binary>
-DM_RSYNC= <set this to your rsync binary>
-DM_ZIP= <set this to your zip binary>
-
## Optional
+# DM_PHP= <Set this to your php binary> [default: php]
+# DM_RSYNC= <set this to your rsync binary> [default: rsync]
+# DM_ZIP= <set this to your zip binary> [default: zip]
# DM_NPM= <Set this to your npm binary> [default: npm]
# DM_NODE= <Set this to your node binary> [default: node]
# DM_COMPOSER= <Set this to your composer binary> [default: composer]
# Before anything - regenerate DAOs
cd $DM_SOURCEDIR/xml
-$DM_PHP GenCode.php schema/Schema.xml $DM_VERSION
+${DM_PHP:-php} GenCode.php schema/Schema.xml $DM_VERSION
cd $ORIGPWD
if [ ! -d "$to" ]; then
mkdir -p "$to"
fi
- $DM_RSYNC -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC --exclude=.git --exclude=.svn "$from/./" "$to/./"
}
## Copy listed files
done
[ ! -d "$to" ] && mkdir "$to"
- $DM_RSYNC -avC $excludes_rsync "$repo/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync "$repo/./" "$to/./"
}
## Copy all core files
## packages/Files packages/PHP packages/Text
[ ! -d "$to" ] && mkdir "$to"
- $DM_RSYNC -avC $excludes_rsync --include=core "$repo/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync --include=core "$repo/./" "$to/./"
}
## Copy Drupal-integration module
done
[ ! -d "$to" ] && mkdir "$to"
- $DM_RSYNC -avC $excludes_rsync "$repo/./" "$to/./"
+ ${DM_RSYNC:-rsync} -avC $excludes_rsync "$repo/./" "$to/./"
}
## usage: dm_install_wordpress <wp_repo_path> <to_path>
if [ ! -d "$to" ]; then
mkdir -p "$to"
fi
- $DM_RSYNC -avC \
+ ${DM_RSYNC:-rsync} -avC \
--exclude=.git \
--exclude=.svn \
--exclude=civicrm.config.php.wordpress \
# generate alt version of package
cp -r -p civicrm com_civicrm/admin/civicrm
-$DM_PHP $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION alt
-$DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla-alt.zip com_civicrm
+${DM_PHP:-php} $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION alt
+${DM_ZIP:-zip} -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla-alt.zip com_civicrm
rm -rf com_civicrm/admin/civicrm
# generate zip version of civicrm.xml
-$DM_PHP $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION zip
-$DM_ZIP -q -r -9 com_civicrm/admin/civicrm.zip civicrm
-$DM_ZIP -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla.zip com_civicrm -x 'com_civicrm/admin/civicrm'
+${DM_PHP:-php} $DM_SOURCEDIR/distmaker/utils/joomlaxml.php $DM_SOURCEDIR com_civicrm $DM_VERSION zip
+${DM_ZIP:-zip} -q -r -9 com_civicrm/admin/civicrm.zip civicrm
+${DM_ZIP:-zip} -q -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-joomla.zip com_civicrm -x 'com_civicrm/admin/civicrm'
# clean up
rm -rf com_civicrm
# gen tarball
cd $TRG
-$DM_ZIP -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-wordpress.zip *
+${DM_ZIP:-zip} -r -9 $DM_TARGETDIR/civicrm-$DM_VERSION-wordpress.zip *
# clean up
rm -rf $TRG